feat: support direct annotation links

This commit is contained in:
Solomon Victorino
2024-04-06 00:14:51 -06:00
parent a614f9b2a0
commit 42e0625695
5 changed files with 36 additions and 8 deletions

View File

@ -18,7 +18,7 @@ import (
func annotations(l *logrus.Logger) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
id := mux.Vars(r)["id"]
id := mux.Vars(r)["annotation-id"]
if a, err := getCache[data.Annotation]("annotation:" + id); err == nil {
encoder := json.NewEncoder(w)