import axios from "axios";

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

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

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

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