aboutsummaryrefslogtreecommitdiff
path: root/core.go
diff options
context:
space:
mode:
authorDoug Black <dblack@twilio.com>2014-03-29 23:56:38 -0700
committerDoug Black <dblack@twilio.com>2014-03-29 23:56:38 -0700
commit13141fe80cbaf373b86b91a68c61d8ff93a03826 (patch)
tree857f442d85a32e71c2f85c4afcc83f7600ae76d0 /core.go
parentfix test make target (diff)
downloadsleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.tar.gz
sleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.tar.bz2
sleepy-13141fe80cbaf373b86b91a68c61d8ff93a03826.zip
add some docs for Mux() function
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