aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
Diffstat (limited to 'core.go')
-rw-r--r--core.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/core.go b/core.go
index f6dd6a7..bdc4499 100644
--- a/core.go
+++ b/core.go
@@ -106,7 +106,8 @@ func (api *API) requestHandler(resource interface{}) http.HandlerFunc {
}
}
-// singleton mux
+// Mux returns the http.ServeMux used by an API. If a ServeMux has
+// does not yet exist, a new one will be created and returned.
func (api *API) Mux() *http.ServeMux {
if api.muxInitialized {
return api.muxPointer
bgstack15