diff --git a/Modules/Linksehat/Routes/api.php b/Modules/Linksehat/Routes/api.php index 349ba5aa..8ff01397 100644 --- a/Modules/Linksehat/Routes/api.php +++ b/Modules/Linksehat/Routes/api.php @@ -72,14 +72,14 @@ Route::prefix('linksehat')->group(function () { Route::get('doctors/{id}', 'show')->name('doctors.show'); }); - Route::middleware('auth:sanctum')->group(function () { - Route::post('notification-token', [AuthController::class, 'notificationToken']); + 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']);