summaryrefslogtreecommitdiffstats
path: root/api/router.go
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.net>2025-09-10 00:46:42 +0100
committerLeonardo Bishop <me@leonardobishop.net>2025-09-10 00:46:42 +0100
commitd122d841e8b7dd7f8942b6f2fa84220f95f2cae4 (patch)
treea00734c1109b222f2485bd31c61fdf5e00a6d516 /api/router.go
parentbaea81484f61fc341634ecf5e144d7ecf18ad42f (diff)
Add optional CSS to html
Diffstat (limited to 'api/router.go')
-rw-r--r--api/router.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/router.go b/api/router.go
index ec7ac4d..c18fed8 100644
--- a/api/router.go
+++ b/api/router.go
@@ -22,6 +22,7 @@ func NewServer(api ApiServices) *http.ServeMux {
mux.HandleFunc("POST /record", middleware.Cors(handlers.RecordEntry(api.EntiresService, api.Config.Token)))
mux.HandleFunc("GET /html", handlers.GetEntriesHtml(api.EntiresService, api.HtmlService))
+ mux.HandleFunc("GET /", handlers.Pong())
return mux
}