mirror of
https://github.com/kaythomas0/noisedash.git
synced 2025-11-18 22:18:04 +00:00
Add setup endpoint
This commit is contained in:
@@ -68,9 +68,9 @@ router.beforeEach((to, from, next) => {
|
||||
next('/')
|
||||
})
|
||||
} else if (to.name === 'Register') {
|
||||
instance.get('/users')
|
||||
instance.get('/setup')
|
||||
.then(response => {
|
||||
if (response.data.users.length !== 0) {
|
||||
if (!response.data.setup) {
|
||||
next('/')
|
||||
} else {
|
||||
next()
|
||||
|
||||
Reference in New Issue
Block a user