kenken999's picture
fa
dfcff8f
raw
history blame
513 Bytes
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');
});