From 215ac23d362ef5064c94860fa1764bde8892c035 Mon Sep 17 00:00:00 2001 From: mahdihty Date: Sat, 6 Mar 2021 11:49:43 +0330 Subject: [PATCH] add middleware --- routes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/api.php b/routes/api.php index a51789c..4a40912 100644 --- a/routes/api.php +++ b/routes/api.php @@ -16,7 +16,7 @@ $router->get('/{transaction}/redirection', 'CreditController@redirection'); $router->group(['prefix' => 'auth'], function () use ($router) { $router->get('/', 'AuthController@auth')->middleware('auth:api'); $router->delete('/', 'AuthController@delete'); - $router->get('/info', 'AuthController@authWithInfo'); + $router->get('/info', 'AuthController@authWithInfo')->middleware('auth:api'); $router->post('login', 'AuthController@login'); $router->post('logout', 'AuthController@logout')->middleware('auth:api'); $router->post('register', 'AuthController@register');