diff --git a/application/apiRoute.php b/application/apiRoute.php index 4f3c11f..f1e6452 100644 --- a/application/apiRoute.php +++ b/application/apiRoute.php @@ -15,4 +15,11 @@ return [ ], '__miss__' => ['api/Miss/index'], ], + '[wiki]' => [ + 'login' => [ + 'wiki/index/login', + ['method' => 'get'] + ], + '__miss__' => ['api/Miss/index'], + ], ]; diff --git a/application/wiki/controller/Index.php b/application/wiki/controller/Index.php index 9accbf6..e521767 100644 --- a/application/wiki/controller/Index.php +++ b/application/wiki/controller/Index.php @@ -95,7 +95,7 @@ class Index extends Base { } public function login() { - return $this->fetch(); + return view(); } -} \ No newline at end of file +}