api code global jain

This commit is contained in:
Abhishek Mali
2025-11-05 10:37:10 +05:30
commit 52fe7e2bec
2834 changed files with 1784903 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Api\V1\Access\NotificationsController;
Route::group(['middleware' => 'auth:sanctum', 'as' => 'api.notification.', 'prefix' => 'user'], function () {
Route::GET('notification-list',[NotificationsController::class, 'notificationListing'])->name('notification-list');
Route::GET('delete-notification/{id}',[NotificationsController::class, 'deleteNotification'])->name('delete-notification');
Route::POST('store-device-token',[NotificationsController::class, 'pushNotificationRegister'])->name('store-device-token');
Route::POST('delete-device-token',[NotificationsController::class, 'deleteUserToken'])->name('delete-device-token');
Route::GET('unread-counts',[NotificationsController::class, 'getUnreadCounts'])->name('unread-counts');
});
Route::POST('user/delete-existing-token',[NotificationsController::class, 'deleteExistingToken'])->name('delete-existing-token');