Skip to content

Commit

Permalink
添加清理功能
Browse files Browse the repository at this point in the history
  • Loading branch information
lan894734188 authored Mar 28, 2017
1 parent 37ab2fa commit 320e173
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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());

Expand Down

0 comments on commit 320e173

Please sign in to comment.