Skip to content
This repository has been archived by the owner on Sep 12, 2022. It is now read-only.

Commit

Permalink
Added name prefix to routes and named routes
Browse files Browse the repository at this point in the history
  • Loading branch information
FaZeRs committed Apr 4, 2019
1 parent eeac1db commit 1b4ba1d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions routes/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@
|
*/

Route::post('contact/send', 'ContactController@send');
Route::name('api.')->group(function () {
Route::post('contact/send', 'ContactController@send')->name('contact.send');

Route::post('login', 'LoginController@login');
Route::post('register', 'RegisterController@register');
Route::get('details', 'UserController@details');
Route::get('logout', 'UserController@logout');
Route::apiResource('categories', 'CategoryController');
Route::apiResource('projects', 'ProjectController');
Route::apiResource('tags', 'TagController');
Route::apiResource('links', 'LinkController');
Route::post('login', 'LoginController@login')->name('login');
Route::post('register', 'RegisterController@register')->name('register');
Route::get('details', 'UserController@details')->name('user.details');
Route::get('logout', 'UserController@logout')->name('user.logout');
Route::apiResource('categories', 'CategoryController');
Route::apiResource('projects', 'ProjectController');
Route::apiResource('tags', 'TagController');
Route::apiResource('links', 'LinkController');
});

0 comments on commit 1b4ba1d

Please sign in to comment.