feat(smalltrip,multiplexer): Multiplexer interface constructor, alias to http.NewServeMux
This commit is contained in:
@@ -23,3 +23,7 @@ type Multiplexer interface {
|
||||
Handler(r *http.Request) (h http.Handler, pattern string)
|
||||
http.Handler
|
||||
}
|
||||
|
||||
func New() Multiplexer {
|
||||
return http.NewServeMux()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user