From 7d36d47ca19bff19af392c491f1acbad4a10285f Mon Sep 17 00:00:00 2001 From: v2board Date: Thu, 28 Dec 2023 01:07:17 +0800 Subject: [PATCH] Add client middleware to subscribe route --- app/Http/Routes/V1/ClientRoute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Routes/V1/ClientRoute.php b/app/Http/Routes/V1/ClientRoute.php index abc25406..02363ebd 100644 --- a/app/Http/Routes/V1/ClientRoute.php +++ b/app/Http/Routes/V1/ClientRoute.php @@ -20,7 +20,7 @@ class ClientRoute $router->get('/app/getVersion', 'V1\\Client\\AppController@getVersion'); }); 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'); } } }