feat: add persistent mobile notifications
This commit is contained in:
@@ -8,6 +8,8 @@ use App\Http\Controllers\FollowController;
|
||||
use App\Http\Controllers\LegalDocumentController;
|
||||
use App\Http\Controllers\MealImageAnalysisController;
|
||||
use App\Http\Controllers\MealPostController;
|
||||
use App\Http\Controllers\NotificationController;
|
||||
use App\Http\Controllers\NotificationPreferenceController;
|
||||
use App\Http\Controllers\PostReviewsController;
|
||||
use App\Http\Controllers\PublicUserProfileController;
|
||||
use App\Http\Controllers\ReportController;
|
||||
@@ -58,6 +60,12 @@ Route::prefix('legal-documents')->group(function (): void {
|
||||
Route::middleware(['auth:sanctum', 'verified', 'not_suspended'])->group(function (): void {
|
||||
Route::post('device-tokens', [DeviceTokenController::class, 'store'])->middleware('throttle:device-token');
|
||||
Route::delete('device-tokens', [DeviceTokenController::class, 'destroy'])->middleware('throttle:device-token');
|
||||
Route::get('notifications', [NotificationController::class, 'index'])->name('notifications.index');
|
||||
Route::get('notifications/unread-count', [NotificationController::class, 'unreadCount'])->name('notifications.unread-count');
|
||||
Route::patch('notifications/read-all', [NotificationController::class, 'markAllAsRead'])->name('notifications.read-all');
|
||||
Route::patch('notifications/{notification}/read', [NotificationController::class, 'markAsRead'])->name('notifications.read');
|
||||
Route::get('notification-preferences', [NotificationPreferenceController::class, 'show'])->name('notification-preferences.show');
|
||||
Route::patch('notification-preferences', [NotificationPreferenceController::class, 'update'])->middleware('throttle:account-action')->name('notification-preferences.update');
|
||||
});
|
||||
|
||||
// Billing
|
||||
|
||||
Reference in New Issue
Block a user