From 35c1a2be50b1727db92f9dd2e11604f52e1978b2 Mon Sep 17 00:00:00 2001 From: Linksehat Staging Server Date: Fri, 24 May 2024 09:13:03 +0700 Subject: [PATCH] update --- Modules/Linksehat/Routes/api.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Linksehat/Routes/api.php b/Modules/Linksehat/Routes/api.php index 9d50ff63..8ff01397 100644 --- a/Modules/Linksehat/Routes/api.php +++ b/Modules/Linksehat/Routes/api.php @@ -44,7 +44,6 @@ Route::prefix('linksehat')->group(function () { Route::controller(AuthController::class)->group(function () { Route::post('otp-request', 'otpRequest'); - Route::post('notification-token', 'notificationToken'); Route::post('mock-otp', 'mockOtp'); Route::post('login', 'login'); Route::post('logout', 'logout'); @@ -73,13 +72,14 @@ Route::prefix('linksehat')->group(function () { Route::get('doctors/{id}', 'show')->name('doctors.show'); }); - Route::middleware('auth:sanctum')->group(function () { + Route::middleware(['auth:sanctum', 'linksehat.old.auth'])->group(function () { + Route::post('notification-token', [AuthController::class,'notificationToken']); Route::get('profile/{id}', [ProfileController::class, 'index'])->name('profile'); Route::get('change-profile/{id}', [ProfileController::class, 'changeProfile'])->name('change-profile'); Route::post('profile', [ProfileController::class, 'update'])->name('profile.update'); Route::post('profile-add', [ProfileController::class, 'store'])->name('profile.store'); - Route::post('notification-tokens/delete/{id}', [NotificationTokenController::class, 'destroy'])->name('profile.delete.token'); - Route::post('notification-tokens', [NotificationTokenController::class, 'store'])->name('profile.store.token'); + // Route::post('notification-tokens/delete/{id}', [NotificationTokenController::class, 'destroy'])->name('profile.delete.token'); + // Route::post('notification-tokens', [NotificationTokenController::class, 'store'])->name('profile.store.token'); Route::apiResource('appointment', AppointmentController::class); Route::apiResource('families', PersonController::class)->except(['destroy']);