Add fetch debug endpoint for requesting an url as a user

This commit is contained in:
Melody Becker 2025-05-22 17:01:47 +02:00
parent ca8f5fd483
commit d8dd5eb671
Signed by: mstar
SSH key fingerprint: SHA256:9VAo09aaVNTWKzPW7Hq2LW+ox9OdwmTSHRoD4mlz1yI
2 changed files with 34 additions and 0 deletions

View file

@ -35,6 +35,7 @@ func New(addr string) *Server {
handler.HandleFunc("GET /request-follow", kickoffFollow)
handler.HandleFunc("POST /send-as", proxyMessageToTarget)
handler.HandleFunc("GET /replies-to/{id}", inReplyTo)
handler.HandleFunc("POST /fetch", requestAs)
web := http.Server{
Addr: addr,
Handler: webutils.ChainMiddlewares(