AdminAPI: add DELETE /instances/:instance to delete all content from a remote instance
[akkoma] / lib / pleroma / web / router.ex
index 72ad14f052a39e56f10e8262e07406f52620f97b..1f465b697df8a790de277397b6e467166a03fcec 100644 (file)
@@ -209,7 +209,8 @@ defmodule Pleroma.Web.Router do
     get("/users/:nickname/statuses", AdminAPIController, :list_user_statuses)
     get("/users/:nickname/chats", AdminAPIController, :list_user_chats)
 
-    get("/instances/:instance/statuses", AdminAPIController, :list_instance_statuses)
+    get("/instances/:instance/statuses", InstanceController, :list_instance_statuses)
+    delete("/instances/:instance", InstanceController, :delete_instance)
 
     get("/instance_document/:name", InstanceDocumentController, :show)
     patch("/instance_document/:name", InstanceDocumentController, :update)