update: add request log to middleware

This commit is contained in:
v2board
2023-06-01 23:31:56 +08:00
parent 1b8ec77bcc
commit 2285a7c92f
4 changed files with 28 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class AdminRoute
{
$router->group([
'prefix' => config('v2board.secure_path', config('v2board.frontend_admin_path', hash('crc32b', config('app.key')))),
'middleware' => 'admin'
'middleware' => ['admin', 'log']
], function ($router) {
// Config
$router->get ('/config/fetch', 'Admin\\ConfigController@fetch');