diff options
| author | horus_arch | 2015-04-19 22:09:52 +0200 |
|---|---|---|
| committer | horus_arch | 2015-04-19 22:09:52 +0200 |
| commit | 01e9a34952bd6ddd383680b0ca2312e476ad07a6 (patch) | |
| tree | 00902575e5c271cc5d35ea65aa8795b8caeb97bc /server/health.go | |
| download | mandible-01e9a34952bd6ddd383680b0ca2312e476ad07a6.tar.gz | |
Initial commit.
Diffstat (limited to 'server/health.go')
| -rw-r--r-- | server/health.go | 14 |
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") +} |
