-
{{ booksTitle }}
+
Books Overview
@@ -89,11 +89,10 @@ import {HTTP} from '../http-common'
import router from '../router'
export default {
- name: 'Home',
+ name: 'Books',
data () {
return {
user: auth.user,
- booksTitle: 'Books Overview',
books: [],
searchQuery: '',
gridColumns: ['Title', 'ISBN', 'Year', 'Price', 'Author', 'Publisher', 'Quantity', 'Status'],
diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js
index 8be383a..d7e4a91 100644
--- a/frontend/src/router/index.js
+++ b/frontend/src/router/index.js
@@ -4,6 +4,7 @@ import Home from '@/components/Home'
import Login from '@/components/Login'
import Books from '@/components/Books'
import BooksAddEdit from '@/components/BooksAddEdit'
+import Authors from '@/components/Authors'
Vue.use(Router)
@@ -33,6 +34,11 @@ export default new Router({
path: '/books/:id/edit',
name: 'book-edit',
component: BooksAddEdit
+ },
+ {
+ path: '/authors',
+ name: 'authors',
+ component: Authors
}
],
linkActiveClass: 'active'