Blame view
src/http/modules/games.js
502 Bytes
|
e7ab2c09a
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
import axios from '../axios'
export const fetchList =(query) => {
return axios({
url: '/games/list',
method: 'get',
params: query
})
}
export const createGame = (data) => {
return axios({
url: '/game/create',
method: 'post',
data
})
}
export const updateGame = (data) => {
return axios({
url: '/game/update',
method: 'post',
data
})
}
export const deleteGame = (data) => {
return axios({
url: '/game/delete',
method: 'post',
data
})
}
|