New frontend configuration mechanism.
This commit is contained in:
parent
b624b7a150
commit
e221c681dc
5 changed files with 68 additions and 0 deletions
|
|
@ -216,6 +216,14 @@ defmodule Pleroma.Web.TwitterAPI.UtilController do
|
|||
end
|
||||
end
|
||||
|
||||
def frontend_configurations(conn, _params) do
|
||||
config =
|
||||
Pleroma.Config.get(:frontend_configurations, %{})
|
||||
|> Enum.into(%{})
|
||||
|
||||
json(conn, config)
|
||||
end
|
||||
|
||||
def version(conn, _params) do
|
||||
version = Pleroma.Application.named_version()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue