mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-12-06 15:06:30 +01:00
Fix dynamic route requests, add auth middleware
This commit is contained in:
1 parent
f83c5dd440
commit
bf38004b5e
11 files changed
+29
-25
No files matched your search
@@ -0,0 +1,6 @@
|
||||
export default function ({ store, redirect, route }) {
|
||||
// If the user is not authenticated
|
||||
if (!store.state.user.user) {
|
||||
return redirect(`/login?redirect=${route.path}`)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user