room.api.js 324 Bytes
Newer Older
1
2
import axios from "axios";

우지원's avatar
e    
우지원 committed
3
4
const create = async (payload) => {
  const { data } = await axios.post("/api/room/create", payload);
5
6
7
  return data;
};

우지원's avatar
e    
우지원 committed
8
9
const join = async (payload) => {
  const { data } = await axios.put("/api/room/join", payload);
10
11
12
  return data;
};

우지원's avatar
e    
우지원 committed
13
const roomApi = { create, join };
14
15

export default roomApi;