去除多余的路由

This commit is contained in:
iVampireSP.com 2022-09-09 01:07:16 +08:00
parent fd99b94b8d
commit 07fb29373f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -66,9 +66,6 @@
}); });
}); });
$router->addRoute(['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS'], '/modules/{module}', 'Remote\ModuleController@call');
$router->group(['prefix' => 'modules/{module}'], function () use ($router) { $router->group(['prefix' => 'modules/{module}'], function () use ($router) {
$controller = 'Remote\ModuleController@call'; $controller = 'Remote\ModuleController@call';
$router->get('/{route:.*}/', $controller); $router->get('/{route:.*}/', $controller);