question.api.ts 409 Bytes
Newer Older
Jiwon Yoon's avatar
Jiwon Yoon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import axios from "axios";
import {  } from "../types";
import baseUrl from "./baseUrl";

export const createQuestion = async () => {
    const { data } = await axios.post(`${baseUrl}/questions/create`, {
        type: "essay",
        title: "Question Title",
        isRequired: false,
        comment: "질문에 대한 설명을 입력해주세요",
        content: null,
    });
    return data;
  };