feat: add guest notification center
This commit is contained in:
@@ -8,6 +8,7 @@ use App\Http\Controllers\Api\PackageController;
|
||||
use App\Http\Controllers\Api\Tenant\DashboardController;
|
||||
use App\Http\Controllers\Api\Tenant\EmotionController;
|
||||
use App\Http\Controllers\Api\Tenant\EventController;
|
||||
use App\Http\Controllers\Api\Tenant\EventGuestNotificationController;
|
||||
use App\Http\Controllers\Api\Tenant\EventJoinTokenController;
|
||||
use App\Http\Controllers\Api\Tenant\EventJoinTokenLayoutController;
|
||||
use App\Http\Controllers\Api\Tenant\EventMemberController;
|
||||
@@ -67,6 +68,13 @@ Route::prefix('v1')->name('api.v1.')->group(function () {
|
||||
Route::get('/events/{token}', [EventPublicController::class, 'event'])->name('events.show');
|
||||
Route::get('/events/{token}/stats', [EventPublicController::class, 'stats'])->name('events.stats');
|
||||
Route::get('/events/{token}/package', [EventPublicController::class, 'package'])->name('events.package');
|
||||
Route::get('/events/{token}/notifications', [EventPublicController::class, 'notifications'])->name('events.notifications');
|
||||
Route::post('/events/{token}/notifications/{notification}/read', [EventPublicController::class, 'markNotificationRead'])
|
||||
->whereNumber('notification')
|
||||
->name('events.notifications.read');
|
||||
Route::post('/events/{token}/notifications/{notification}/dismiss', [EventPublicController::class, 'dismissNotification'])
|
||||
->whereNumber('notification')
|
||||
->name('events.notifications.dismiss');
|
||||
Route::get('/events/{token}/achievements', [EventPublicController::class, 'achievements'])->name('events.achievements');
|
||||
Route::get('/events/{token}/emotions', [EventPublicController::class, 'emotions'])->name('events.emotions');
|
||||
Route::get('/events/{token}/tasks', [EventPublicController::class, 'tasks'])->name('events.tasks');
|
||||
@@ -134,6 +142,8 @@ Route::prefix('v1')->name('api.v1.')->group(function () {
|
||||
Route::post('toggle', [EventController::class, 'toggle'])->name('tenant.events.toggle');
|
||||
Route::post('invites', [EventController::class, 'createInvite'])->name('tenant.events.invites');
|
||||
Route::get('toolkit', [EventController::class, 'toolkit'])->name('tenant.events.toolkit');
|
||||
Route::get('guest-notifications', [EventGuestNotificationController::class, 'index'])->name('tenant.events.guest-notifications.index');
|
||||
Route::post('guest-notifications', [EventGuestNotificationController::class, 'store'])->name('tenant.events.guest-notifications.store');
|
||||
});
|
||||
|
||||
Route::prefix('join-tokens')->group(function () {
|
||||
|
||||
Reference in New Issue
Block a user