import axios from '../axios'

const index = () => axios.get('vote')
const show = (id) => axios.get('vote/' + id)

const submit = (id, data) => axios.post('vote/' + id, {data: data})

export default {
    index,
    show,
    submit
}
