Merge pull request #66 from sgvictorino/additional-annotation-route

fix: add annotations route without verse slug
This commit is contained in:
Achraf RRAMI 2024-09-18 11:54:50 +00:00 committed by GitHub
commit c81feb465b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,6 +32,7 @@ func New(logger *utils.Logger, staticFiles static) *mux.Router {
{Path: "/images/{filename}.{ext}", Handler: imageProxy}, {Path: "/images/{filename}.{ext}", Handler: imageProxy},
{Path: "/search", Handler: search}, {Path: "/search", Handler: search},
{Path: "/{annotation-id}/{artist-song}/{verse}/annotations", Handler: annotations}, {Path: "/{annotation-id}/{artist-song}/{verse}/annotations", Handler: annotations},
{Path: "/{annotation-id}/{artist-song}/annotations", Handler: annotations},
{Path: "/instances.json", Handler: instances}, {Path: "/instances.json", Handler: instances},
} }