class ActionController::Metal

def self.call(env)

the given env's action_dispatch.request.path_parameters key.
Makes the controller a rack endpoint that points to the action in
def self.call(env)
  action(env['action_dispatch.request.path_parameters'][:action]).call(env)
end