15 lines
478 B
PHP
15 lines
478 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group(['prefix' => 'user', 'middleware' => ['assign.guard:users']], function () {
|
|
Route::post('/register', 'UsersController@register');
|
|
Route::post('/login', 'UsersController@login');
|
|
Route::get('/me', 'UsersController@me');
|
|
});
|
|
|
|
Route::prefix('product')->group(function () {
|
|
Route::post('/', 'ProductsController@add')->middleware(['assign.guard:users']);
|
|
Route::get('/', 'ProductsController@index');
|
|
});
|