Second commit
added few test, first api to add book
This commit is contained in:
@@ -1,4 +1,18 @@
|
||||
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'
|
||||
|
||||
createApp(App).mount('#app')
|
||||
|
||||
const routes = [
|
||||
{ path: '/', component: BooksBrowser },
|
||||
{ path: '/add', component: AddBook },
|
||||
]
|
||||
|
||||
export const router = createRouter({
|
||||
history: createWebHistory(),
|
||||
routes,
|
||||
})
|
||||
|
||||
createApp(App).use(router).mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user