UNPKG

quickbuild

Version:

A mature, feature-complete application generator with an emphasis on speed

16 lines (15 loc) 394 B
import api from '@/services/api' export default { fetchMessages() { return api.get(`messages/`) .then(response => response.data) }, postMessage(payload) { return api.post(`messages/`, payload) .then(response => response.data) }, deleteMessage(msgId) { return api.delete(`messages/${msgId}`) .then(response => response.data) } }