aboutsummaryrefslogtreecommitdiff
path: root/backend/logs.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 11:59:09 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-06 11:59:09 +0200
commit0ac33061f8275a6808276adfa8ea8b8dcd92d7c9 (patch)
treeb3075f8bb56e833647444e93945b3ccd7dd8e13c /backend/logs.go
parentda56ce47d2e275db58e429a3d8ab85290541ca6f (diff)
feat(frontend): better link style in light theme
and rename /log route to /logs/
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 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)
})
}