qb_akkoma/lib/akkoma/web/swagger.ex

7 lines
137 B
Elixir

defmodule Akkoma.Web.Swagger do
alias Pleroma.Config
def ui_enabled? do
Config.get([:frontends, :swagger, "enabled"])
end
end