ClearBowl/api/routes/api.php

15 lines
478 B
PHP
Raw Normal View History

2019-11-16 20:37:33 +01:00
<?php
use Illuminate\Support\Facades\Route;
2019-11-16 20:37:33 +01:00
Route::group(['prefix' => 'user', 'middleware' => ['assign.guard:users']], function () {
Route::post('/register', 'UsersController@register');
Route::post('/login', 'UsersController@login');
Route::get('/me', 'UsersController@me');
2019-11-16 20:37:33 +01:00
});
2019-12-04 12:49:41 +01:00
2019-12-05 10:25:36 +01:00
Route::prefix('product')->group(function () {
Route::post('/', 'ProductsController@add')->middleware(['assign.guard:users']);
Route::get('/', 'ProductsController@index');
2019-12-04 12:49:41 +01:00
});