need fix rout spa and set api on URL
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import HomeView from '../views/HomeView.vue'
|
||||
import SignUpView from '../views/SingUpV.vue'
|
||||
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
routes: [
|
||||
{
|
||||
path: '/signup',
|
||||
name: 'signup',
|
||||
component: SignUpView,
|
||||
},
|
||||
{
|
||||
path: '/',
|
||||
name: 'home',
|
||||
component: HomeView,
|
||||
},
|
||||
{
|
||||
path: '/signin',
|
||||
name: 'signin',
|
||||
component: SingIn,
|
||||
}
|
||||
],
|
||||
})
|
||||
});
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user