import axios from "axios";

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

    create(data) {
        return axios({
            baseURL:baseURL,
            url:"/about-us",
            method:"POST",
            data:data
        })
    }
    getTotal(){
        return axios({
            baseURL:baseURL,
            url:'/about-us-total',
        })
    }
    show(id) {
        return axios({
            baseURL:baseURL,
            url:'/about-us/'+id,
            method:"get"
        })
    }

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