Commit 6e77fd3a authored by Lee SeoYeon's avatar Lee SeoYeon
Browse files

주석처리

parent c854de41
...@@ -8,7 +8,7 @@ export const createSurvey = async (survey:SurveyType) => { ...@@ -8,7 +8,7 @@ export const createSurvey = async (survey:SurveyType) => {
return data; return data;
} }
export const getSurvey = async () => { // export const getSurvey = async () => {
const {data} = await axios.get(`${baseUrl}/surveys/profile`) // const {data} = await axios.get(`${baseUrl}/surveys/profile`)
return data; // return data;
} // }
\ No newline at end of file \ No newline at end of file
...@@ -8,7 +8,7 @@ export const createSurvey = asyncWrap(async (req, res) => { ...@@ -8,7 +8,7 @@ export const createSurvey = asyncWrap(async (req, res) => {
return res.json(newSurvey); return res.json(newSurvey);
}); });
export const getSurveys = asyncWrap(async (req, res) => { // export const getSurveys = asyncWrap(async (req, res) => {
const surveys = await surveyDb.getSurveys(); // const surveys = await surveyDb.getSurveys();
return res.json(surveys); // return res.json(surveys);
}); // });
...@@ -5,7 +5,7 @@ export const createSurvey = async (survey: ISurvey) => { ...@@ -5,7 +5,7 @@ export const createSurvey = async (survey: ISurvey) => {
return newSurvey; return newSurvey;
}; };
export const getSurveys = async () => { // export const getSurveys = async () => {
const surveys = await Survey.find({}).populate("questions") // const surveys = await Survey.find({}).populate("questions")
return surveys // return surveys
} // }
\ No newline at end of file \ No newline at end of file
...@@ -7,7 +7,7 @@ router ...@@ -7,7 +7,7 @@ router
.route("/create") .route("/create")
.post(surveyCtrl.createSurvey); .post(surveyCtrl.createSurvey);
router // router
.route("/profile") // .route("/profile")
.get(surveyCtrl.getSurveys) // .get(surveyCtrl.getSurveys)
export default router; export default router;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment