Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@eggjs/tegg-controller-plugin 中的 @HTTPMethod 注解期望支持多个方法 #229

Open
2 tasks done
enson0131 opened this issue Jul 17, 2024 · 1 comment
Open
2 tasks done

Comments

@enson0131
Copy link

请详细告知你的新解决思路:

现状:当前 @HTTPMethod 只能给 controller 对象的方法定义一种请求方法,例如只能是 GET、POST 请求
期望:期望新增一个 All 类型,支持一个方法多种请求方式。

跟进类型:

  • 这是某个任务
  • 这是一个具体的 PR 的地址(URL)
@killagu
Copy link
Contributor

killagu commented Jul 18, 2024

可以来尝试实现一下,HTTPMethod 参数中的 method 字段可以兼容单值和枚举的情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants