From 016cda5beb51635c40eab96f06980fed010be427 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 14 Jan 2022 22:57:29 +0100 Subject: [PATCH] Add Current endpoint --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index cbaa0c9..f9d7f56 100644 --- a/main.go +++ b/main.go @@ -49,6 +49,7 @@ func main() { func runHttpServer() { http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) { w.Write([]byte("

Time Tracking

")) + w.Write([]byte("Doing "+lastEvent.Name+" since "+lastEvent.EventTimestamp.Format(time.RFC3339)+"
")) w.Write([]byte("

Today

")) for tag, _ := range currentState { i := currentState[tag][time.Now().Format("02.01.06")]