Skip to content

Commit 1f5e1bb

Browse files
god9599rdd9223
authored andcommitted
Etc: 미완성 코드 제거
1 parent 4fae06e commit 1f5e1bb

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

src/controllers/v1/wordbooks.controller.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,6 @@ class WordbookController {
3535
}
3636
};
3737

38-
public getOptionWords = async (req: Request, res: Response, next: NextFunction) => {
39-
const { userId }: { userId: number } = req.body; // 추후 토큰으로 받으면 유효성 검사해서 불러올 것.
40-
const wordbookIds: string = req.query.wordbookIds as string;
41-
const wordbooksIdArr: string[] = wordbookIds.split(',') as string[];
42-
const order: string = req.query.order as string;
43-
const filter: EFilter = req.query.filter as EFilter;
44-
const filterArr: EFilter[] = filter.split(',') as EFilter[];
45-
try {
46-
const optionWordbooksData = await this.WordbookService.findOptionWordbookData(
47-
userId,
48-
wordbooksIdArr,
49-
order,
50-
filterArr,
51-
);
52-
return res
53-
.status(statusCode.OK)
54-
.json({ message: resMessage.X_READ_ALL_SUCCESS(WORDBOOK), data: optionWordbooksData });
55-
} catch (err) {
56-
next(err);
57-
}
58-
};
59-
6038
public getWordbookById = async (req: Request, res: Response, next: NextFunction) => {
6139
const wordbookId: string = req.params.wordbookId;
6240
const { userId }: { userId: number } = req.body; // 추후 토큰으로 받으면 유효성 검사해서 불러올 것.

0 commit comments

Comments
 (0)