Web.Router: Change right to permission group (except for function names)
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 10 Nov 2018 14:20:49 +0000 (15:20 +0100)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Sat, 17 Nov 2018 21:12:13 +0000 (22:12 +0100)
lib/pleroma/web/router.ex

index 281e816c13d0dfbac6cf988db20881fd8d735237..74ceb1304963d410a2de14f3467e6a2eaa2e37f0 100644 (file)
@@ -99,10 +99,10 @@ defmodule Pleroma.Web.Router do
     delete("/user", AdminAPIController, :user_delete)
     post("/user", AdminAPIController, :user_create)
 
-    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)
+    get("/permission_group/:nickname", AdminAPIController, :right_get)
+    get("/permission_group/:nickname/:permission_group", AdminAPIController, :right_get)
+    post("/permission_group/:nickname/:permission_group", AdminAPIController, :right_add)
+    delete("/permission_group/:nickname/:permission_group", AdminAPIController, :right_delete)
 
     post("/relay", AdminAPIController, :relay_follow)
     delete("/relay", AdminAPIController, :relay_unfollow)