Web.Router: Change right to permission group (except for function names)

This commit is contained in:
Haelwenn (lanodan) Monnier 2018-11-10 15:20:49 +01:00
parent e0b0fde713
commit 4634d99d0d
No known key found for this signature in database
GPG Key ID: D5B7A8E43C997DEE

View File

@ -99,10 +99,10 @@ defmodule Pleroma.Web.Router do
delete("/user", AdminAPIController, :user_delete) delete("/user", AdminAPIController, :user_delete)
post("/user", AdminAPIController, :user_create) post("/user", AdminAPIController, :user_create)
get("/rights/:nickname", AdminAPIController, :right_get) get("/permission_group/:nickname", AdminAPIController, :right_get)
get("/rights/:nickname/:right", AdminAPIController, :right_get) get("/permission_group/:nickname/:permission_group", AdminAPIController, :right_get)
post("/rights/:nickname/:right", AdminAPIController, :right_add) post("/permission_group/:nickname/:permission_group", AdminAPIController, :right_add)
delete("/rights/:nickname/:right", AdminAPIController, :right_delete) delete("/permission_group/:nickname/:permission_group", AdminAPIController, :right_delete)
post("/relay", AdminAPIController, :relay_follow) post("/relay", AdminAPIController, :relay_follow)
delete("/relay", AdminAPIController, :relay_unfollow) delete("/relay", AdminAPIController, :relay_unfollow)