blessing-skin-server/routes/api.php
2019-04-23 10:05:58 +08:00

12 lines
322 B
PHP

<?php
Route::prefix('auth')->group(function ($route) {
$route->post('login', 'AuthController@apiLogin');
$route->post('logout', 'AuthController@apiLogout')->middleware('auth.jwt');
});
Route::prefix('user')->middleware('auth.jwt')->group(function ($route) {
$route->post('sign', 'UserController@sign');
});