Skip to content

Commit

Permalink
Merge 3627838 into 85e36fb
Browse files Browse the repository at this point in the history
  • Loading branch information
kresnasatya committed Jan 19, 2020
2 parents 85e36fb + 3627838 commit 3c19f92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
// I make in seperate controller and make in different route
// I think it's better without conflict the main project.

Route::post('auth/login', 'Api\Auth\AuthController@login');
Route::middleware('auth:api')->post('logout', 'Api\Auth\AuthController@logout');
Route::post('auth/login', 'Api\Auth\AuthController@login')->name('api.auth.login');
Route::middleware('auth:api')->post('logout', 'Api\Auth\AuthController@logout')->name('api.auth.logout');

Route::group(['middleware' => 'auth:api', 'as' => 'api.', 'namespace' => 'Api'], function () {
/*
Expand Down

0 comments on commit 3c19f92

Please sign in to comment.