From d91bebb9c7b636e6eab80b38781e7ee0a20be8e5 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');