renaming app/api to app/endpoints, for clarity