0

I am learning serverless with nodejs. Right now a little bit confused. When I look at knative specifically, it is not clear to me how to handle path parameters.

In this description , it is said that:

Functions are invoked with a context object as the first parameter. This object provides access to the incoming request information. Developers can get the HTTP request method, any query strings sent with the request, the headers, the HTTP version, the request body.

Notice that they say nothing about path parameters. So my question: is this an accepted approach that nodejs functions/serverless do not support path parameters? Or am I missing something. Here is the example I have to extract query parameters:

const handle = async (context) => {
  const city = context.query.city;
};

2
  • path parameters are indeed possible stackoverflow.com/questions/53975944/… Commented May 1, 2023 at 3:34
  • The question though is are knative and lambda aligned? Commented May 1, 2023 at 4:28

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.