Add api getprofile

This commit is contained in:
Amir
2023-07-30 09:39:35 +08:00
parent 0f073c72bb
commit f2b036d22f
2 changed files with 12 additions and 1 deletions
+2
View File
@@ -39,6 +39,8 @@ Route::get('/portalApi', [LelongMobileController::class, 'portalApi']);
//Protected routes
Route::group(['middleware' => ['auth:sanctum']], function () {
// get user detail by verifying token
Route::get('/getProfile', [AuthController::class, 'getProfile']);
// User
Route::post('/user/logout', [AuthController::class, 'logoutUser']);
Route::get('/user/profile/{nokp}', [UserController::class, 'getProfileUser']);