Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
survey
Commits
8d00247e
Commit
8d00247e
authored
Nov 15, 2022
by
Yoon, Daeki
😅
Browse files
custom axios로 변경
parent
3b045d9c
Changes
6
Show whitespace changes
Inline
Side-by-side
frontend/src/apis/answer.api.ts
View file @
8d00247e
import
axios
from
"
axios
"
;
import
axios
from
"
./
axios
.config
"
;
import
{
IAnswer
,
IAnswerRequestData
}
from
"
../types
"
;
import
baseUrl
from
"
./baseUrl
"
;
...
...
frontend/src/apis/auth.api.ts
View file @
8d00247e
import
axios
from
"
axios
"
;
import
axios
from
"
./
axios
.config
"
;
import
{
SignupUser
}
from
"
../types
"
;
import
baseUrl
from
"
./baseUrl
"
;
...
...
frontend/src/apis/axios.config.ts
0 → 100644
View file @
8d00247e
import
axios
from
"
axios
"
;
const
customAxios
=
axios
.
create
();
export
default
customAxios
;
frontend/src/apis/index.ts
View file @
8d00247e
...
...
@@ -3,3 +3,5 @@ export * as questionApi from "./question.api";
export
*
as
surveyApi
from
"
./survey.api
"
;
export
*
as
answerApi
from
"
./answer.api
"
;
export
{
baseImageUrl
}
from
"
./baseUrl
"
;
export
{
default
as
customAxios
}
from
"
./axios.config
"
;
export
{
useAxiosInterceptor
}
from
"
./useAxiosInterceptor
"
;
frontend/src/apis/question.api.ts
View file @
8d00247e
import
axios
from
"
axios
"
;
import
axios
from
"
./
axios
.config
"
;
import
{
IQuestionData
}
from
"
../types
"
;
import
baseUrl
from
"
./baseUrl
"
;
...
...
frontend/src/apis/survey.api.ts
View file @
8d00247e
import
axios
from
"
axios
"
;
import
axios
from
"
./
axios
.config
"
;
import
{
CreateQuestionData
,
IQuestionData
,
ISurvey
}
from
"
../types
"
;
import
baseUrl
from
"
./baseUrl
"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment