Added vuex as a store and an event bus.

This commit is contained in:
krzysiej
2022-06-13 15:17:02 +02:00
parent 5c154b740c
commit 8dbd63478d
8 changed files with 118 additions and 21 deletions

10
assets/js/api/book.js Normal file
View File

@@ -0,0 +1,10 @@
import axios from 'axios';
export default {
booksFetch(searchTitle) {
return axios.get('/api/books', {
params: {title: searchTitle},
headers: {'accept': 'application/json'}
})
}
}