Skip to content

Instantly share code, notes, and snippets.

@SushantSinghRajput03
Created September 11, 2020 12:11
Show Gist options
  • Save SushantSinghRajput03/6410927e13ea290eca4ccf3c491be98d to your computer and use it in GitHub Desktop.
Save SushantSinghRajput03/6410927e13ea290eca4ccf3c491be98d to your computer and use it in GitHub Desktop.
Route::group([
'middleware' => 'api',
'prefix' => 'auth'
], function ($router) {
Route::post('login', 'AuthController@login');
Route::post('logout', 'AuthController@logout');
Route::post('refresh', 'AuthController@refresh');
Route::post('me', 'AuthController@me');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment