We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a3f1b7 commit 907ed38Copy full SHA for 907ed38
internal/router/router.go
@@ -19,11 +19,17 @@ func InitRouter() {
19
// API v1
20
v1 := r.Group("/api/v1")
21
{
22
+ // --------------------
23
+ // 注册 API 日志 路由
24
+ routes.ResigterApiLogRouter(v1)
25
+
26
27
// 公开路由
28
public := v1.Group("")
29
// 注册登录路由
30
routes.ResigterLoginRouter(public)
31
32
33
// 需要认证的路由
34
authGroup := v1.Group("")
35
// 注册中间件
@@ -35,8 +41,6 @@ func InitRouter() {
41
routes.ResigterRoleRouter(authGroup)
36
42
// 注册权限路由
37
43
routes.ResigterPermissionRouter(authGroup)
38
- // 注册 API 日志 路由
39
- routes.ResigterApiLogRouter(authGroup)
40
44
}
45
46
r.Run(fmt.Sprintf(":%d", config.GlobalConfig.App.Port)) // 监听端口
0 commit comments