From 9f9562f26736882701995000a5fe6a4cba8560b5 Mon Sep 17 00:00:00 2001 From: "Haoran S. Diao" <0@hairydiode.xyz> Date: Fri, 22 Nov 2019 17:56:36 -0800 Subject: Editted backend.go to serve timestamp of most recently sent alert, index.html now periodically checks that timestamp to send notifications. --- backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'backend.go') diff --git a/backend.go b/backend.go index 25878c3..aaa4122 100644 --- a/backend.go +++ b/backend.go @@ -14,5 +14,5 @@ func main() { } func messageHandler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Origin", "*") - fmt.Fprintf(w, "肏"); + fmt.Fprintf(w, "1574466927"); } -- cgit v1.1