diff options
| author | xengineering <me@xengineering.eu> | 2026-05-23 22:37:31 +0200 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-05-23 22:38:40 +0200 |
| commit | 7bb61037ffa36549661b8a34e305343d40007ca2 (patch) | |
| tree | f83925a198399ee4b624863aedf0c2623125d59b /handlers.go | |
| parent | e7367b8aa96e6b2eed27ba1441f61f696eaffd3d (diff) | |
| download | finserv-7bb61037ffa36549661b8a34e305343d40007ca2.tar finserv-7bb61037ffa36549661b8a34e305343d40007ca2.tar.zst finserv-7bb61037ffa36549661b8a34e305343d40007ca2.zip | |
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.
Diffstat (limited to 'handlers.go')
| -rw-r--r-- | handlers.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) } |
