Modify api_controller to single line