initial commit

Signed-off-by: Derek McQuay <derekmcquay@gmail.com>
This commit is contained in:
dm
2018-04-10 19:17:26 -07:00
commit 59af8fc84f
2025 changed files with 456739 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package hdx
import (
"net/http"
)
var prefix map[string]string
func addRoutes(sm *http.ServeMux, server *Server, staticFiles string) {
prefix = map[string]string{
"info": "/info/",
"health": "/healthz",
"visit": "/",
}
sm.HandleFunc(prefix["visit"], server.visit)
sm.HandleFunc(prefix["info"], server.serverInfo)
sm.HandleFunc(prefix["health"], server.health)
}