Files
ISMAIL MASSERAN 94ecbe5887 first init
2026-06-08 11:37:14 +08:00

12 lines
684 B
PHP

<?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');
});