API 网关在腾讯云函数体系中类似于 HTTP 函数,我们通过它将函数发布为 HTTP 服务。
使用方式
在 f.yml 中配置函数,同时配置触发器类型。
service:name: midway-faas-examplesprovider:name: tencentfunctions:apiGatewayTrigger:handler: index.handlerevents:- apigw:path: /apimethod: getpackage:artifact: code.zip
