mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 05:11:07 +03:30
mixin role and config url
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ Route::group(['namespace' => 'Api'],function () {
|
||||
|
||||
|
||||
Route::get('/getInfo', function () {
|
||||
return response()->json([ 'user' => auth('api')->user() ], 200);
|
||||
return response()->json([ 'user' => auth('api')->user(), 'roles' => auth('api')->user()->getRoleNames() ], 200);
|
||||
})->middleware('auth:api');
|
||||
|
||||
Route::resource('TestTypes', 'TestTypeController');
|
||||
|
||||
Reference in New Issue
Block a user