debianize-mobilizon/lib/mobilizon_web/resolvers/config.ex
2019-03-22 13:58:57 +01:00

15 lines
326 B
Elixir

defmodule MobilizonWeb.Resolvers.Config do
@moduledoc """
Handles the config-related GraphQL calls
"""
require Logger
import Mobilizon.CommonConfig
@doc """
Get config
"""
def get_config(_parent, _params, _context) do
{:ok, %{name: instance_name(), registrations_open: registrations_open?()}}
end
end