Start dockerizing, fix app bar bugs

This commit is contained in:
Kevin Thomas
2021-11-09 19:14:58 -08:00
parent d52aea3fd9
commit 8c6c4a00cc
7 changed files with 28 additions and 7 deletions

View File

@@ -47,12 +47,12 @@ router.beforeEach((to, from, next) => {
if (response.status === 200) {
next()
} else {
next('/login')
next('/register')
}
})
.catch((error) => {
console.error(error.response)
next('/login')
next('/register')
})
} else if (to.name === 'Admin') {
instance.get('/admin')
@@ -71,14 +71,14 @@ router.beforeEach((to, from, next) => {
instance.get('/setup')
.then(response => {
if (!response.data.setup) {
next('/')
next('/login')
} else {
next()
}
})
.catch((error) => {
console.error(error.response)
next('/')
next('/login')
})
} else {
next()