From 0ac33061f8275a6808276adfa8ea8b8dcd92d7c9 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 6 Oct 2025 11:59:09 +0200 Subject: feat(frontend): better link style in light theme and rename /log route to /logs/ --- backend/logs.go | 3 ++- backend/templates/components.html | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'backend') diff --git a/backend/logs.go b/backend/logs.go index 7a6db3e..db69462 100644 --- a/backend/logs.go +++ b/backend/logs.go @@ -108,9 +108,10 @@ func readLogDir(path string, dir []os.DirEntry) error { } func HandleLogs(r *chi.Mux) { - r.Route("/log", func(r chi.Router) { + r.Route("/logs", func(r chi.Router) { r.Get("/", handleLogList) r.Get("/{slug:[a-zA-Z0-9-]+}", handleLog) + r.Get("/{slug:[a-zA-Z0-9-]+}/", handleLog) }) } diff --git a/backend/templates/components.html b/backend/templates/components.html index 280fa3d..2758a8b 100644 --- a/backend/templates/components.html +++ b/backend/templates/components.html @@ -2,9 +2,9 @@
{{ range .Logs }}