first init
This commit is contained in:
@@ -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');
|
||||
});
|
||||
Reference in New Issue
Block a user