Files
exchange/resources/assets/js/store/modules/booking.js
T
Jack Goh 97062480d5 added get one booking function in controller
update routes with booking id pramas
fixed not found routes
fixed count down with real data
moved bookings routes into autenticated route
2018-06-18 17:34:20 +08:00

39 lines
793 B
JavaScript

// import axios from 'axios'
// import Cookies from 'js-cookie'
// import * as types from '../mutation-types'
// // state
// export const state = {
// booking: null
// }
// // getters
// export const getters = {
// booking: state => state.booking,
// }
// // mutations
// export const mutations = {
// [types.FETCH_BOOKING_SUCCESS] (state, { booking }) {
// state.booking = booking
// },
// [types.FETCH_BOOKING_FAILURE] (state) {
// state.booking = null
// },
// }
// // actions
// export const actions = {
// async fetchBooking ({ commit }) {
// try {
// const { data } = await axios.get('/api/user')
// commit(types.FETCH_BOOKING_SUCCESS, { booking: data })
// } catch (e) {
// commit(types.FETCH_BOOKING_FAILURE)
// }
// }
// }