Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/views/Question/Question.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react';
import LoadingScreen from './LoadingScreen';
import DoneScreen from './DoneScreen';
import QuestionForm from './QuestionForm';
import { IS_FAKE_MODE } from '../../config';
import { IS_FAKE_MODE, API_BASE_URL } from '../../config';

export default function Question() {
// 요청상태: idle/loading/done/error
Expand Down Expand Up @@ -110,7 +110,7 @@ export default function Question() {
throw new Error("토큰이 없습니다.");
}

const response = await fetch("/questions/question", {
const response = await fetch(`${API_BASE_URL}/questions/question`, {
method: "POST",
headers: {
"Authorization": `Bearer ${token}`
Expand Down