diff --git a/library/think/Route.php b/library/think/Route.php index fa159928..580cd894 100644 --- a/library/think/Route.php +++ b/library/think/Route.php @@ -218,7 +218,7 @@ class Route } // rest方法定义和修改 - public static function rest($name, $resocure = []) + public static function rest($name, $resource = []) { if (is_array($name)) { self::$rest = array_merge(self::$rest, $name);