From 578b198cb845560d67c494c762ace6e9f73e0470 Mon Sep 17 00:00:00 2001 From: kekskurse Date: Fri, 14 Jan 2022 22:50:03 +0100 Subject: [PATCH] Add Current endpoint --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0904a44..cbaa0c9 100644 --- a/main.go +++ b/main.go @@ -72,7 +72,7 @@ func runHttpServer() { } }) http.HandleFunc("/current", func(w http.ResponseWriter, r *http.Request) { - res, err := json.Marshal(currentState) + res, err := json.Marshal(lastEvent) if err != nil { log.Fatal().Err(err).Msg("Cant Marshal Current State") }