Skip to content
Discussion options

You must be logged in to vote

Hello @lpw

Path params (which I presume you meant by "variables"), should be specified with : symbol in path for Express:

/:channel/:timestamp

Therefore, the Routing object should look this way:

const routing: Routing = {
  ":channel": {
    ":timestamp": theEndpoint
  }
};

See https://ez.robintail.cz/v27.0.1/routing for more examples.

Regarding the Blob instance — i'm not sure, because the input schema validates against the already parsed request properties combined. There is no body itself by default and Endpoints have no access to original request (by default).

However, if you use the ez.raw() schema as the input (and you're using the createServer() approach), the body would be parsed by

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by RobinTail
Comment options

You must be logged in to vote
2 replies
@RobinTail
Comment options

@lpw
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants