支持注册404Handler
This commit is contained in:
parent
93cef0cf7f
commit
1de0715637
@ -134,6 +134,15 @@ func (s *server) Router() *gin.Engine {
|
|||||||
return s.router
|
return s.router
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Handler404 注册404的处理方法
|
||||||
|
//
|
||||||
|
// Author : go_developer@163.com<白茶清欢>
|
||||||
|
//
|
||||||
|
// Date : 16:01 2025/2/22
|
||||||
|
func (s *server) Handler404(f gin.HandlerFunc) {
|
||||||
|
s.router.NoRoute(f)
|
||||||
|
}
|
||||||
|
|
||||||
// Group 注册接口路由
|
// Group 注册接口路由
|
||||||
//
|
//
|
||||||
// Author : go_developer@163.com<白茶清欢>
|
// Author : go_developer@163.com<白茶清欢>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user