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
1ea0c555
Commit
1ea0c555
authored
Aug 08, 2022
by
Yoon, Daeki
😅
Browse files
createSurvey api route 수정
parent
f0864302
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/apis/survey.api.ts
View file @
1ea0c555
...
@@ -3,7 +3,7 @@ import { SurveyType } from "../types";
...
@@ -3,7 +3,7 @@ import { SurveyType } from "../types";
import
baseUrl
from
"
./baseUrl
"
;
import
baseUrl
from
"
./baseUrl
"
;
export
const
createSurvey
=
async
(
survey
:
SurveyType
)
=>
{
export
const
createSurvey
=
async
(
survey
:
SurveyType
)
=>
{
const
{
data
}
=
await
axios
.
post
(
`
${
baseUrl
}
/surveys
/create
`
,
survey
);
const
{
data
}
=
await
axios
.
post
(
`
${
baseUrl
}
/surveys`
,
survey
);
return
data
;
return
data
;
};
};
...
...
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