aboutsummaryrefslogtreecommitdiff
path: root/backend/logs.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/logs.go')
-rw-r--r--backend/logs.go3
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]