%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/forge/takeaseat.eco-n-tech.co.uk/store/
Upload File :
Create Path :
Current File : //home/forge/takeaseat.eco-n-tech.co.uk/store/booking.js

export const state = () => ({
  therapist: {},
  client: {}
})

export const mutations = {
  setTherapist(state, data) {
    state.therapist = data
  },
  setClient(state, data) {
    state.client = data
  }
}

export const actions = {
  async get({ commit, error }, id) {
    await this.$axios.get('/booking/intent/'+id)
      .then((res) => {
        if (res.status === 200) {
          commit('setTherapist', res.data.data)
        }
      })
  },

  async getClient({ commit, error }, id) {
    await this.$axios.get('/therapist/clients/'+id)
      .then((res) => {
        if (res.status === 200) {
          commit('setClient', res.data.data)
        }
      })
  },
}

Zerion Mini Shell 1.0