feat(middlewares): 添加认证中间件以处理JWT授权

This commit is contained in:
2025-12-30 18:06:16 +08:00
parent 2c633dac0f
commit d87eac7d94
3 changed files with 31 additions and 3 deletions

View File

@@ -5,5 +5,7 @@ func (r *Routes) Path() string {
}
func (r *Routes) Middlewares() []any {
return []any{}
return []any{
r.middlewares.Auth,
}
}