Files
bibliomane/front/src/main.js
Arthur Lefebvre 8432902df1 Second commit
added few test, first api to add book
2025-09-23 17:16:48 +02:00

19 lines
429 B
JavaScript

import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import BooksBrowser from './BooksBrowser.vue'
import AddBook from './AddBook.vue'
const routes = [
{ path: '/', component: BooksBrowser },
{ path: '/add', component: AddBook },
]
export const router = createRouter({
history: createWebHistory(),
routes,
})
createApp(App).use(router).mount('#app')