File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ; // 추후 토큰으로 받으면 유효성 검사해서 불러올 것.
You can’t perform that action at this time.
0 commit comments