commands to ban (and unban) events using the relay management api.

This commit is contained in:
fiatjaf
2024-11-25 12:04:30 -03:00
parent 762018edf6
commit 1b2e434d6a
6 changed files with 202 additions and 23 deletions

View File

@@ -129,6 +129,9 @@ func main() {
},
)
// admin
setupRelayManagement(relay)
// routes
mux := relay.Router()
mux.Handle("/njump/static/", http.StripPrefix("/njump/", http.FileServer(http.FS(static))))