diff options
| author | a73x <[email protected]> | 2024-09-03 08:52:12 +0100 |
|---|---|---|
| committer | a73x <[email protected]> | 2024-09-03 08:52:12 +0100 |
| commit | 17b008f72f284ea989fddb2b6b52c2ca558c985a (patch) | |
| tree | acb286b07dd62fc0e539ae466536132b3c9b7c94 /web/web.go | |
| parent | 1c0e1cc8c6a51457907ce028599c2bcad82d0bfd (diff) | |
chore(html): refactor nav to be more dynamic
Diffstat (limited to 'web/web.go')
| -rw-r--r-- | web/web.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -38,7 +38,7 @@ func New(logger *zap.Logger) (*http.Server, error) { mux.Handle("GET /static/", http.StripPrefix("/static/", http.FileServer(http.FS(staticFs)))) for _, page := range pages { - mux.HandleFunc("GET /"+page.Path, func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("GET "+page.Path, func(w http.ResponseWriter, r *http.Request) { w.Write([]byte(page.Content)) }) } |
