Show Body 3
This commit is contained in:
parent
3fc1c3b758
commit
d496c6bc70
|
|
@ -30,9 +30,9 @@ export class SignUpHandler extends RequestHandler
|
||||||
|
|
||||||
async _handle( request:FastifyRequest, reply:FastifyReply )
|
async _handle( request:FastifyRequest, reply:FastifyReply )
|
||||||
{
|
{
|
||||||
|
RJLog.log( "Body:", request.body );
|
||||||
let requestBody = JSON.parse( request.body as string );
|
let requestBody = JSON.parse( request.body as string );
|
||||||
RJLog.log( "Body:", request.body, "Parsed:", requestBody );
|
|
||||||
let { email, password, userName } = requestBody as { email: string; password: string; userName: string };
|
let { email, password, userName } = requestBody as { email: string; password: string; userName: string };
|
||||||
|
|
||||||
if ( ! email || ! password )
|
if ( ! email || ! password )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue