need fix rout spa and set api on URL

This commit is contained in:
valitovgaziz
2024-12-06 01:55:00 +05:00
parent 47a9e724ab
commit b87c3aa1ae
4 changed files with 19 additions and 6 deletions
+7 -6
View File
@@ -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