summaryrefslogtreecommitdiff
path: root/livewatch.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-10-16 17:43:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-10-16 17:43:28 +0200
commitf73e6f38581d9cdfb10e3fb6409ea1894e18b39b (patch)
tree01b595c07b35fdc368ff8b774988df1292f8f9c0 /livewatch.go
parent0d1de95de5bd31de756f7b764e63baad2b6e928c (diff)
Cleanup
Diffstat (limited to 'livewatch.go')
-rw-r--r--livewatch.go18
1 files changed, 0 insertions, 18 deletions
diff --git a/livewatch.go b/livewatch.go
deleted file mode 100644
index 7a6c02c..0000000
--- a/livewatch.go
+++ /dev/null
@@ -1,18 +0,0 @@
-package main
-
-import (
- "io"
- "net/http"
-)
-
-func init() {
- http.HandleFunc("/livewatch", liveWatch)
-}
-
-func liveWatch(w http.ResponseWriter, r *http.Request) {
- key := r.FormValue("key")
- if len(key) != 32 {
- key = "Ok"
- }
- io.WriteString(w, key)
-}