subject.api.js 389 Bytes
Newer Older
1
import axios from "axios";
Kim, Subin's avatar
Kim, Subin committed
2
import baseUrl from "../utils/baseUrl.js";
3
4
5

const addsubject = async (info) => {
  console.log('info확인', info)
Kim, Subin's avatar
Kim, Subin committed
6
  const url = `${baseUrl}/api/subject/addsubject`;
7
8
9
10
  const { data, status } = await axios.post(url, info);
  console.log('data status', data, '|', status)
  return { data, status }
}
Kim, Subin's avatar
Kim, Subin committed
11

12
13
14
15
16
const subjectApi = {
  addsubject
};

export default subjectApi