From f5673158b1b3b5285ea963f760eaab32ce6f5040 Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Mon, 26 Feb 2018 00:42:18 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E4=BB=A3=E7=A0=81=E5=A4=87=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/apiRoute.php | 7 +++++++ application/wiki/controller/Index.php | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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 +}