import axios from "axios";

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

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

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

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