mirror of
https://github.com/kevin-DL/comedy-video-lib.git
synced 2026-01-16 13:04:39 +00:00
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:
9
store/routing.js
Normal file
9
store/routing.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export const state = () => ({
|
||||
redirectedFrom: null
|
||||
})
|
||||
|
||||
export const mutations = {
|
||||
setRedirectedFrom(state, from) {
|
||||
state.redirectedFrom = from
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user