debugPrintRoute() is called in the lowest layer of abstraction

This commit is contained in:
Manu Mtz-Almeida
2015-05-20 11:32:39 +02:00
parent 138e4b49bf
commit c2abae6840
2 changed files with 2 additions and 1 deletions

2
gin.go
View File

@ -141,6 +141,8 @@ func (engine *Engine) rebuild405Handlers() {
}
func (engine *Engine) addRoute(method, path string, handlers HandlersChain) {
debugPrintRoute(method, path, handlers)
if path[0] != '/' {
panic("path must begin with '/'")
}