docs/web/router-registering-strict-router-faq #145
Replies: 2 comments 1 reply
-
大佬,问下,规范路由注册中,有的方法需要鉴权,这种要怎么注册啊 |
Beta Was this translation helpful? Give feedback.
1 reply
-
我有一个方法,前端调用需要鉴权,服务器内部调用免鉴权,这个怎么处理,目前我发现一个方法,只能注册一条路径。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
docs/web/router-registering-strict-router-faq
在使用GoFrame框架的规范路由下,如何支持同一接口的多种HTTP Method提交方式。在设计RESTful接口时,每个API应有明确的HTTP Method对应,如创建用户、获取用户列表等。如果需要一个接口支持多个HTTP Method,可以通过Meta标签设置。此外,介绍如何使用类型别名让Response结构体的Data字段返回数组形式。
https://goframe.org/docs/web/router-registering-strict-router-faq
Beta Was this translation helpful? Give feedback.
All reactions