Add client middleware to subscribe route

This commit is contained in:
v2board 2023-12-28 01:07:17 +08:00
parent 532dfbf4b8
commit 7d36d47ca1

View File

@ -20,7 +20,7 @@ class ClientRoute
$router->get('/app/getVersion', 'V1\\Client\\AppController@getVersion'); $router->get('/app/getVersion', 'V1\\Client\\AppController@getVersion');
}); });
if (config('v2board.subscribe_path')) { if (config('v2board.subscribe_path')) {
\Route::get(config('v2board.subscribe_path'), 'V1\\Client\\ClientController@subscribe'); \Route::get(config('v2board.subscribe_path'), 'V1\\Client\\ClientController@subscribe')->middleware('client');
} }
} }
} }