1
0
Fork 0
forked from mirrors/akkoma
akkoma/lib/pleroma/web/controller_helper.ex

10 lines
180 B
Elixir

defmodule Pleroma.Web.ControllerHelper do
use Pleroma.Web, :controller
def json_response(conn, status, json) do
conn
|> put_status(status)
|> json(json)
end
end