Skip to content

Commit

Permalink
Etc: 미완성 코드 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
god9599 authored and rdd9223 committed May 12, 2021
1 parent 4fae06e commit 1f5e1bb
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/controllers/v1/wordbooks.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,28 +35,6 @@ class WordbookController {
}
};

public getOptionWords = async (req: Request, res: Response, next: NextFunction) => {
const { userId }: { userId: number } = req.body; // 추후 토큰으로 받으면 유효성 검사해서 불러올 것.
const wordbookIds: string = req.query.wordbookIds as string;
const wordbooksIdArr: string[] = wordbookIds.split(',') as string[];
const order: string = req.query.order as string;
const filter: EFilter = req.query.filter as EFilter;
const filterArr: EFilter[] = filter.split(',') as EFilter[];
try {
const optionWordbooksData = await this.WordbookService.findOptionWordbookData(
userId,
wordbooksIdArr,
order,
filterArr,
);
return res
.status(statusCode.OK)
.json({ message: resMessage.X_READ_ALL_SUCCESS(WORDBOOK), data: optionWordbooksData });
} catch (err) {
next(err);
}
};

public getWordbookById = async (req: Request, res: Response, next: NextFunction) => {
const wordbookId: string = req.params.wordbookId;
const { userId }: { userId: number } = req.body; // 추후 토큰으로 받으면 유효성 검사해서 불러올 것.
Expand Down

0 comments on commit 1f5e1bb

Please sign in to comment.