register endpoints for api app