Browse Source

add middleware

remotes/origin/mohammad
mahdihty 4 years ago
parent
commit
215ac23d36
  1. 2
      routes/api.php

2
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');

Loading…
Cancel
Save