Commit 43874143 authored by 秦俊坤's avatar 秦俊坤

鉴权优化

parent 45426787
......@@ -64,7 +64,7 @@ class AuthorizeMiddleware implements MiddlewareInterface
* @param string $method
* @return array|string
*/
private function getRouterByPath(string $path, string $method) : array
private function getRouterByPath(string $path, string $method) : string
{
$factory = ApplicationContext::getContainer()->get(DispatcherFactory::class);
$dispatcher = $factory->getDispatcher('http');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment