38 lines
786 B
JavaScript
Raw Normal View History

2023-11-04 00:27:28 +01:00
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import * as VueRouter from 'vue-router'
2023-11-04 00:27:28 +01:00
import App from './App.vue'
import './registerServiceWorker'
import './index.css'
2023-11-04 00:27:28 +01:00
2023-11-08 23:52:28 +01:00
import MarketsView from '@/views/MarketsView'
2023-11-08 01:19:52 +01:00
import LoginView from '@/views/LoginView'
import UserView from '@/views/UserView'
2023-11-08 23:52:28 +01:00
import MarketView from '@/views/MarketView'
const routes = [
{
2023-11-08 23:52:28 +01:00
path: '/', component: MarketsView
},
{
path: '/login', component: LoginView
2023-11-07 09:48:01 +01:00
},
{
path: '/user', component: UserView
2023-11-08 23:52:28 +01:00
},
{
path: '/market/:id', component: MarketView
}
]
const router = VueRouter.createRouter({
history: VueRouter.createWebHashHistory(),
routes
})
const pinia = createPinia()
const app = createApp(App)
app.use(router)
app.use(pinia)
app.mount('#app')