mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-17 02:04:03 +00:00
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.
This commit is contained in:
@@ -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
|
||||
// -------------------------------------------------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user