Accessing Typed JSON Payload in HttpApiEndpoint Post Request
Hello,
I have an HttpApiEndpoint.post defined with the payload.
In the handler, I access the request with
The only way I found to access the body of the post request is with req.json. But it gives me a raw json without typing.
How can I access the parsed json value typed with the type defined in the setPayload ?
I have an HttpApiEndpoint.post defined with the payload.
In the handler, I access the request with
The only way I found to access the body of the post request is with req.json. But it gives me a raw json without typing.
How can I access the parsed json value typed with the type defined in the setPayload ?
