/**
  * Revise the protected state of a controller method.
  *
  * @param  \Illuminate\Routing\Route  $route
  * @param  \Dingo\Api\Routing\Controller  $controller
  * @param  string  $method
  * @return \Illuminate\Routing\Route
  */
 protected function reviseProtectedMethods($action, $controller, $method)
 {
     if (in_array($method, $controller->getProtectedMethods())) {
         $action['protected'] = true;
     } elseif (in_array($method, $controller->getUnprotectedMethods())) {
         $action['protected'] = false;
     }
     return $action;
 }