devsapp/fc

建议允许使用 methods: * 的方式启用 HTTP 触发器的全部请求方式

Opened this issue · 0 comments

现在定义一个支持全部 HTTP 请求方式的 HTTP 触发器需要写很多东西:

      triggers:
        - name: http
          type: http
          config:
            authType: anonymous
            methods:
              - GET
              - HEAD
              - POST
              - DELETE
              - PUT
              - PATCH
              - OPTIONS

如果能用 * 来代替这些方法就好了:

      triggers:
        - name: http
          type: http
          config:
            authType: anonymous
            methods: *