From e0e302e1cf27a3fca805e3e57c502a60950f70db Mon Sep 17 00:00:00 2001 From: Darko Gjorgjijoski Date: Fri, 3 Apr 2026 23:39:14 +0200 Subject: [PATCH] Add /register web route to serve SPA for invitation registration The SPA catch-all only handles /admin/{vue?}. The /register route needs its own web route to serve the app view so Vue router can handle it. --- routes/web.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/routes/web.php b/routes/web.php index 8ed23b65..21a03165 100644 --- a/routes/web.php +++ b/routes/web.php @@ -123,6 +123,13 @@ Route::get('/installation', function () { })->name('install') ->middleware(['redirect-if-installed']); +// Registration via invitation (serves SPA) +// ------------------------------------------------- + +Route::get('/register', function () { + return view('app'); +})->middleware(['install']); + // Move other http requests to the Vue App // -------------------------------------------------