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;
};