Skip to content

Commit 907ed38

Browse files
committed
开发api日志功能
1 parent 2a3f1b7 commit 907ed38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/router/router.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@ func InitRouter() {
1919
// API v1
2020
v1 := r.Group("/api/v1")
2121
{
22+
// --------------------
23+
// 注册 API 日志 路由
24+
routes.ResigterApiLogRouter(v1)
25+
26+
// --------------------
2227
// 公开路由
2328
public := v1.Group("")
2429
// 注册登录路由
2530
routes.ResigterLoginRouter(public)
2631

32+
// --------------------
2733
// 需要认证的路由
2834
authGroup := v1.Group("")
2935
// 注册中间件
@@ -35,8 +41,6 @@ func InitRouter() {
3541
routes.ResigterRoleRouter(authGroup)
3642
// 注册权限路由
3743
routes.ResigterPermissionRouter(authGroup)
38-
// 注册 API 日志 路由
39-
routes.ResigterApiLogRouter(authGroup)
4044
}
4145

4246
r.Run(fmt.Sprintf(":%d", config.GlobalConfig.App.Port)) // 监听端口

0 commit comments

Comments
 (0)