Is there a better alternative to ParamDecorator for accessing the body or request? Perhaps using a function decorator or something on a global scale?
@Post('token')
public async createToken(@Body() body: UserLogin): Promise<any> {
return await this.authService.signIn(body);
}
I'm having some issues with this method.
@Post('token')
@Body('body')
public async createToken(body: UserLogin): Promise<any> {
return await this.authService.signIn(body);
}