I had a controller that didn't send the response back.
@Controller('/foo')
export class FooController {
@Post()
public async getBar(@Body() body: DTO, @Res() res) {
const response = await this.doSomething(body);
return response;
}
}
I had to use the res.send method:
@Controller('/foo')
export class FooController {
@Post()
public async getBar(@Body() body: DTO, @Res() res) {
const response = await this.doSomething(body);
res.send(response);
}
}