Spaces:
Running
on
Zero
Running
on
Zero
use Illuminate\Http\Request; | |
use Illuminate\Support\Facades\Route; | |
Route::post('/register', 'Auth\RegisterController@register'); | |
Route::post('/login', 'Auth\LoginController@login'); | |
Route::middleware('auth:api')->group(function () { | |
Route::get('/teams', 'TeamController@index'); | |
Route::post('/teams', 'TeamController@store'); | |
Route::get('/users', 'UserController@index'); | |
Route::get('/users/{id}', 'UserController@show'); | |
Route::patch('/users/{id}/profile', 'ProfileController@update'); | |
}); |