skip to Main Content

Javascript – Use Response object in service Nestjs

I have this controller @Post('/login') async login(@Res() res: Response, @Body() body: LoginDto) { try { const user = await this.authService.login(body); return ResponseUtil.success(res, user, 'nice'); } catch (error) { return ResponseUtil.serverError(res, error.stack); } } I want to use res in authService…

VIEW QUESTION
Back To Top
Search