khatru/blossom: implement bud-04 mirror.

This commit is contained in:
fiatjaf
2025-05-06 00:15:45 -03:00
parent 05bf7b9c4f
commit 0d99789a54
2 changed files with 96 additions and 0 deletions
+5
View File
@@ -44,6 +44,11 @@ func New(rl *khatru.Relay, serviceURL string) *BlossomServer {
}
}
if r.URL.Path == "/mirror" && r.Method == "PUT" {
bs.handleMirror(w, r)
return
}
if strings.HasPrefix(r.URL.Path, "/list/") && r.Method == "GET" {
bs.handleList(w, r)
return