Change the way API endpoints are registered