Node.js Google云函数中的通配符url

Node.js Google云函数中的通配符url,node.js,express,google-cloud-platform,google-cloud-functions,Node.js,Express,Google Cloud Platform,Google Cloud Functions,您可以将Google云功能定义为: exports.functionName = (req, res) => { count++; // Note: the total function invocation count across // all instances may not be equal to this value! res.send(`Instance execution count: ${count}`); }; 我想知道您是否可以允许一个包罗万象的方

您可以将Google云功能定义为:

exports.functionName = (req, res) => {
  count++;

  // Note: the total function invocation count across
  // all instances may not be equal to this value!
  res.send(`Instance execution count: ${count}`);
};
我想知道您是否可以允许一个包罗万象的方法,例如在以下条件下接受任何参数:

https://us-central1-project-name.cloudfunctions.net/functionName/*/


我们的目标是通过GCF托管一些动态生成的文件,目前我看不到允许某种通配符url的明显方式。

req对象是Express.js,因此您可以像API文档建议的那样使用它。将告诉您请求的路径,包括URL中函数名称后的任何路径部分。因此,您可以解析它并对其中的数据执行所需操作。

exports.functionName
url的路径是
cloudfunctions.com/functionName
。根据您提供的内容,这是否意味着同一基础件上的任何子路径都将指向它?所以
cloudfunctions.com/functionName/dynamicfil123321123123.js
会通过它吗?