first init

This commit is contained in:
ISMAIL MASSERAN
2026-06-08 11:37:14 +08:00
commit 94ecbe5887
1058 changed files with 87732 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
use Illuminate\Support\Facades\Route;
use Modules\Notification\Http\Controllers\NotificationController;
Route::middleware(['auth:sanctum', 'single.session'])->prefix('v1')->group(function () {
Route::get('notifications', [NotificationController::class, 'index'])->name('notifications.index');
Route::patch('notifications/{id}/read', [NotificationController::class, 'markAsRead'])->name('notifications.markAsRead');
Route::patch('notifications/mark-all-read', [NotificationController::class, 'markAllAsRead'])->name('notifications.markAllAsRead');
Route::get('notifications/count', [NotificationController::class, 'getCount'])->name('notifications.count');
});