Added native os notifications
This commit is contained in:
@@ -30,6 +30,7 @@ use Inertia\Inertia;
|
||||
]);
|
||||
});
|
||||
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
return Inertia::render('Dashboard');
|
||||
})->middleware(['auth', 'verified'])->name('dashboard');
|
||||
@@ -40,7 +41,20 @@ use Inertia\Inertia;
|
||||
Route::post('/ignore-missing-livery', [AdminController::class, 'ignoreMissingLivery'])->name('ignore-missing-livery');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Route::middleware('auth')->group(function () {
|
||||
|
||||
Route::post('/push-subscriptions', function (Illuminate\Http\Request $request) {
|
||||
$request->user()->updatePushSubscription(
|
||||
$request->endpoint,
|
||||
$request->keys['p256dh'] ?? null,
|
||||
$request->keys['auth'] ?? null
|
||||
);
|
||||
|
||||
return response()->noContent();
|
||||
});
|
||||
|
||||
Route::post('/flights', [FlightController::class, 'store'])->name('flights.store');
|
||||
Route::get('/flights/add', [FlightController::class, 'add'])->name('flights.add');
|
||||
Route::get('/flights/{flight}/edit', [FlightController::class, 'edit'])->name('flights.edit');
|
||||
|
||||
Reference in New Issue
Block a user