sarga/packages/Webkul/Admin/src/Routes/notification-routes.php

23 lines
912 B
PHP
Raw Normal View History

2021-12-30 13:30:13 +00:00
<?php
use Illuminate\Support\Facades\Route;
2022-03-31 11:28:52 +00:00
use Webkul\Notification\Http\Controllers\Admin\NotificationController;
2021-12-30 13:30:13 +00:00
/**
2022-03-31 11:28:52 +00:00
* Notification routes.
2021-12-30 13:30:13 +00:00
*/
2022-03-31 11:28:52 +00:00
Route::group(['middleware' => ['web', 'admin', 'admin_locale'], 'prefix' => config('app.admin_url')], function () {
Route::get('notifications', [NotificationController::class, 'index'])->defaults('_config', [
2021-12-30 13:30:13 +00:00
'view' => 'admin::notifications.index',
])->name('admin.notification.index');
2022-03-31 11:28:52 +00:00
Route::get('get-notifications', [NotificationController::class, 'getNotifications'])
2021-12-30 13:30:13 +00:00
->name('admin.notification.get-notification');
2022-03-31 11:28:52 +00:00
Route::get('viewed-notifications/{orderId}', [NotificationController::class, 'viewedNotifications'])
2021-12-30 13:30:13 +00:00
->name('admin.notification.viewed-notification');
2022-03-31 11:28:52 +00:00
Route::post('read-all-notifications', [NotificationController::class, 'readAllNotifications'])
2021-12-30 13:30:13 +00:00
->name('admin.notification.read-all');
});