cinema.api.js 381 Bytes
Newer Older
Kim, Subin's avatar
Kim, Subin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import axios from "axios";
import baseUrl from "../utils/baseUrl.js";

const getInfo = async () => {
    const { data } = await axios.get(`${baseUrl}/api/cinema`)
    return data
}

const edit = async (cinemaInfo) => {
    const { data } = await axios.put(`${baseUrl}/api/cinema`, cinemaInfo)
    return data
}

const cinemaApi = {
    getInfo,
    edit
}

export default cinemaApi