From 00bf78e81f8e2386c712c757d571656b8bc88909 Mon Sep 17 00:00:00 2001 From: Peanuts <849421294godw@gmail.com> Date: Sat, 6 Aug 2022 17:35:42 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E6=AD=A3=E7=BD=91=E5=85=B3?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=E5=99=A8=E7=9A=84=E6=AD=A3=E7=A1=AE=E5=86=99?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebFunc-Go1-helloworld/serverless.yml | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/WebFunc-Go1-helloworld/serverless.yml b/WebFunc-Go1-helloworld/serverless.yml index edfd46a109..26d143ccaf 100644 --- a/WebFunc-Go1-helloworld/serverless.yml +++ b/WebFunc-Go1-helloworld/serverless.yml @@ -10,15 +10,17 @@ inputs: region: ap-guangzhou memorySize: 512 timeout: 3 - triggers: - - type: apigw - name: SCF_API_SERVICE - protocols: - - http - - https - environment: release - netTypes: - - OUTER - apis: - - path: / - method: ANY + events: + - apigw: + parameters: + serviceName: SCF_API_SERVICE + protocols: + - http + - https + netTypes: + - OUTER + environment: release + endpoints: + - path: / + method: ANY + apiName: ${name}