Skip to content

Commit

Permalink
add mis function NSHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
astaxie committed Mar 11, 2016
1 parent 571f9b4 commit 22196d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions namespace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 22196d7

Please sign in to comment.