From 7bb61037ffa36549661b8a34e305343d40007ca2 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 23 May 2026 22:37:31 +0200 Subject: Hook up frontend in Go web server This makes the Hugo-built static website part of site hosted by Go which also contains the dynamic API under /api. --- handlers.go | 1 + 1 file changed, 1 insertion(+) (limited to 'handlers.go') diff --git a/handlers.go b/handlers.go index 08486bf..4db3879 100644 --- a/handlers.go +++ b/handlers.go @@ -6,6 +6,7 @@ import ( ) func init() { + router.Handle("/", http.FileServer(http.Dir("frontend/public"))) router.HandleFunc("/api/version", version) } -- cgit v1.3