Converted app to an API