|
|
@ -14,11 +14,11 @@ $router->get('/callback', 'CreditController@callback'); |
|
|
|
$router->get('/{transaction}/redirection', 'CreditController@redirection'); |
|
|
|
|
|
|
|
$router->group(['prefix' => 'auth'], function () use ($router) { |
|
|
|
$router->get('/', 'AuthController@auth'); |
|
|
|
$router->get('/', 'AuthController@auth')->middleware('auth:api'); |
|
|
|
$router->delete('/', 'AuthController@delete'); |
|
|
|
$router->get('/info', 'AuthController@authWithInfo'); |
|
|
|
$router->post('login', 'AuthController@login'); |
|
|
|
$router->post('logout', 'AuthController@logout'); |
|
|
|
$router->post('logout', 'AuthController@logout')->middleware('auth:api'); |
|
|
|
$router->post('register', 'AuthController@register'); |
|
|
|
$router->post('revoke/{token}', 'AuthController@revoke'); |
|
|
|
|
|
|
@ -27,8 +27,8 @@ $router->group(['prefix' => 'auth'], function () use ($router) { |
|
|
|
|
|
|
|
$router->post('verification', 'AuthController@verification'); |
|
|
|
|
|
|
|
$router->get('google/redirect', 'AuthController@redirectToGoogle'); |
|
|
|
$router->get('google/callback', 'AuthController@handleGoogleCallback'); |
|
|
|
$router->get('google/redirect', 'AuthController@redirectToGoogle')->name('google.redirect'); |
|
|
|
$router->get('google/callback', 'AuthController@handleGoogleCallback')->name('google.callback'); |
|
|
|
}); |
|
|
|
|
|
|
|
$router->group(['prefix' => 'businesses', 'middleware' => 'auth:api'], function () use ($router) { |
|
|
|