mirror of
https://github.com/astaxie/beego.git
synced 2024-12-23 02:30:49 +00:00
add mis function NSHandler
This commit is contained in:
parent
571f9b4b65
commit
22196d7841
@ -388,3 +388,10 @@ func NSNamespace(prefix string, params ...LinkNamespace) LinkNamespace {
|
||||
ns.Namespace(n)
|
||||
}
|
||||
}
|
||||
|
||||
// NSHandler add handler
|
||||
func NSHandler(rootpath string, h http.Handler) LinkNamespace {
|
||||
return func(ns *Namespace) {
|
||||
ns.Handler(rootpath, h)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user