From e4768dfa883d78d57d202c7df99d802b316a8796 Mon Sep 17 00:00:00 2001 From: Solomon Victorino Date: Sun, 25 Aug 2024 17:21:21 -0600 Subject: [PATCH] fix: add annotations route without verse slug used when an annotation only includes special characters --- handlers/handler.go | 1 + 1 file changed, 1 insertion(+) diff --git a/handlers/handler.go b/handlers/handler.go index 367741e..6dc85d8 100644 --- a/handlers/handler.go +++ b/handlers/handler.go @@ -32,6 +32,7 @@ func New(logger *utils.Logger, staticFiles static) *mux.Router { {Path: "/images/{filename}.{ext}", Handler: imageProxy}, {Path: "/search", Handler: search}, {Path: "/{annotation-id}/{artist-song}/{verse}/annotations", Handler: annotations}, + {Path: "/{annotation-id}/{artist-song}/annotations", Handler: annotations}, {Path: "/instances.json", Handler: instances}, }