summaryrefslogtreecommitdiff
path: root/server/health.go
diff options
context:
space:
mode:
Diffstat (limited to 'server/health.go')
-rw-r--r--server/health.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/health.go b/server/health.go
new file mode 100644
index 0000000..f59d027
--- /dev/null
+++ b/server/health.go
@@ -0,0 +1,14 @@
+package server
+
+import (
+ "fmt"
+ "net/http"
+)
+
+func healthHandler(w http.ResponseWriter, r *http.Request) {
+ if r.URL.Path != "/health" {
+ errorHandler(w, r, http.StatusNotFound)
+ return
+ }
+ fmt.Fprint(w, "TODO")
+}