This commit is contained in:
Linksehat Staging Server
2024-05-24 09:13:03 +07:00
parent 8ae6e44680
commit 35c1a2be50

View File

@@ -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']);