Register API endpoints properly