diff options
| author | William Hergès <william@herges.fr> | 2025-10-03 18:40:45 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-03 18:40:45 +0200 |
| commit | 0de89e6bc6a467b2cc4261ae65464f40119cc0ff (patch) | |
| tree | 47ca3e894444950152b3ba0cf587f713d5aa7eaa /backend/logs.go | |
| parent | 270f592fc65cd5553ccf7c0dc81431c3efdf67ab (diff) | |
feat(frontend): use htmx to dynamically navigate between pages
Diffstat (limited to 'backend/logs.go')
| -rw-r--r-- | backend/logs.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/logs.go b/backend/logs.go index 2901559..c663ffb 100644 --- a/backend/logs.go +++ b/backend/logs.go @@ -124,11 +124,12 @@ func handleLogList(w http.ResponseWriter, r *http.Request) { if d == nil { return } + d.title = "logs" d.handleGeneric(w, r, "home_log", d) } func handleLog(w http.ResponseWriter, r *http.Request) { - cfg := r.Context().Value("config").(*Config) + cfg := r.Context().Value(configKey).(*Config) slug := chi.URLParam(r, "slug") path := filepath.Join(cfg.LogFolder, slug) d, ok := logs[path] |
