From 320e17348d7a1a8e10c1288ebc8edd299155e6f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=B9=E5=8F=91=E9=9D=93=E9=B8=A1=E4=BB=94?= Date: Tue, 28 Mar 2017 17:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=B8=85=E7=90=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/routes.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/routes.php b/app/routes.php index f4eec18ea..eeb473606 100755 --- a/app/routes.php +++ b/app/routes.php @@ -80,8 +80,12 @@ $app->group('/admin', function () { $this->get('', 'App\Controllers\AdminController:index'); $this->get('/', 'App\Controllers\AdminController:index'); + $this->get('/sys', 'App\Controllers\AdminController:sysinfo'); $this->get('/trafficlog', 'App\Controllers\AdminController:trafficLog'); $this->get('/checkinlog', 'App\Controllers\AdminController:checkinLog'); + $this->post('/cleannodelog', 'App\Controllers\AdminController:cleanNodelog'); + $this->post('/cleanonlinelog', 'App\Controllers\AdminController:cleanOnlinelog'); + $this->post('/cleantrafficlog', 'App\Controllers\AdminController:cleantrafficlog'); // app config $this->get('/config', 'App\Controllers\AdminController:config'); $this->put('/config', 'App\Controllers\AdminController:updateConfig'); @@ -108,7 +112,6 @@ $this->get('/profile', 'App\Controllers\AdminController:profile'); $this->get('/invite', 'App\Controllers\AdminController:invite'); $this->post('/invite', 'App\Controllers\AdminController:addInvite'); - $this->get('/sys', 'App\Controllers\AdminController:sys'); $this->get('/logout', 'App\Controllers\AdminController:logout'); })->add(new Admin());