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 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)
})
}