[#394] Added users.tags and admin routes to tag and untag users. Added tests.
This commit is contained in:
parent
ccf0b46dd6
commit
7b19487389
8 changed files with 139 additions and 2 deletions
9
lib/pleroma/web/controller_helper.ex
Normal file
9
lib/pleroma/web/controller_helper.ex
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
defmodule Pleroma.Web.ControllerHelper do
|
||||
use Pleroma.Web, :controller
|
||||
|
||||
def json_response(conn, status, json) do
|
||||
conn
|
||||
|> put_status(status)
|
||||
|> json(json)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue