mirror of
https://github.com/infinite-iroha/touka.git
synced 2026-02-03 08:51:11 +08:00
fix NoRoutes
This commit is contained in:
parent
c6c65c04a7
commit
69469c0306
1 changed files with 2 additions and 2 deletions
|
|
@ -499,9 +499,9 @@ func (Engine *Engine) NoRoute(handler HandlerFunc) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 传入并设置NoRoutes (这不是最后一个处理, 你仍可以next到默认的404处理)
|
// 传入并设置NoRoutes (这不是最后一个处理, 你仍可以next到默认的404处理)
|
||||||
func (Engine *Engine) NoRoutes(handlers HandlersChain) {
|
func (Engine *Engine) NoRoutes(handlerFuncs ...HandlerFunc) {
|
||||||
Engine.noRoute = nil
|
Engine.noRoute = nil
|
||||||
Engine.noRoutes = handlers
|
Engine.noRoutes = handlerFuncs
|
||||||
}
|
}
|
||||||
|
|
||||||
// combineHandlers 组合多个处理函数链为一个。
|
// combineHandlers 组合多个处理函数链为一个。
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue