Logged in/ Logged out

- Created midlewares for authenticated and guest]
- Add the token to the api calls
- Added redirect after the login
This commit is contained in:
2020-11-11 20:26:45 +00:00
parent fe1a5d77c3
commit 6945c27ec0
13 changed files with 597 additions and 21 deletions

9
store/routing.js Normal file
View File

@@ -0,0 +1,9 @@
export const state = () => ({
redirectedFrom: null
})
export const mutations = {
setRedirectedFrom(state, from) {
state.redirectedFrom = from
}
}