Added vuex as a store and an event bus.
This commit is contained in:
1 parent
5c154b740c
commit
8dbd63478d
8 files changed
+118
-21
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import axios from 'axios';
|
||||
|
||||
export default {
|
||||
booksFetch(searchTitle) {
|
||||
return axios.get('/api/books', {
|
||||
params: {title: searchTitle},
|
||||
headers: {'accept': 'application/json'}
|
||||
})
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user