import axios from "axios";

const baseURL = '/api/website'
export class VisionService{

    create(data) {
        return axios({
            baseURL:baseURL,
            url:"/visions",
            method:"POST",
            data:data
        })
    }
    show(id) {
        return axios({
            baseURL:baseURL,
            url:'/visions/'+id,
            method:"get"
        })
    }

    update(id,data) {
        return axios({
            baseURL:baseURL,
            url:'/visions/'+id,
            method:"post",
            data:data
        })
    }

    delete(data) {
        return axios({
            baseURL:baseURL,
            url:"/visions-delete",
            method:"delete",
            data:data
        })
    }
}