aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/router.ex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pleroma/web/router.ex')
-rw-r--r--lib/pleroma/web/router.ex6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/pleroma/web/router.ex b/lib/pleroma/web/router.ex
index 4d9422970..281e816c1 100644
--- a/lib/pleroma/web/router.ex
+++ b/lib/pleroma/web/router.ex
@@ -99,8 +99,10 @@ defmodule Pleroma.Web.Router do
delete("/user", AdminAPIController, :user_delete)
post("/user", AdminAPIController, :user_create)
- post("/rights/:right/:nickname", AdminAPIController, :right_add)
- delete("/rights/:right/:nickname", AdminAPIController, :right_delete)
+ get("/rights/:nickname", AdminAPIController, :right_get)
+ get("/rights/:nickname/:right", AdminAPIController, :right_get)
+ post("/rights/:nickname/:right", AdminAPIController, :right_add)
+ delete("/rights/:nickname/:right", AdminAPIController, :right_delete)
post("/relay", AdminAPIController, :relay_follow)
delete("/relay", AdminAPIController, :relay_unfollow)