mirror of
https://github.com/v2board/v2board.git
synced 2025-01-11 08:39:09 +08:00
21 lines
665 B
PHP
21 lines
665 B
PHP
|
<?php
|
||
|
namespace App\Http\Routes\V2;
|
||
|
|
||
|
use Illuminate\Contracts\Routing\Registrar;
|
||
|
|
||
|
class AdminRoute
|
||
|
{
|
||
|
public function map(Registrar $router)
|
||
|
{
|
||
|
$router->group([
|
||
|
'prefix' => config('v2board.secure_path', config('v2board.frontend_admin_path', hash('crc32b', config('app.key')))),
|
||
|
'middleware' => ['admin', 'log'],
|
||
|
], function ($router) {
|
||
|
// Stat
|
||
|
$router->get ('/stat/override', 'V2\\Admin\\StatController@override');
|
||
|
$router->get ('/stat/record', 'V2\\Admin\\StatController@record');
|
||
|
$router->get ('/stat/ranking', 'V2\\Admin\\StatController@ranking');
|
||
|
});
|
||
|
}
|
||
|
}
|