mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-29 11:25:39 +00:00
19 lines
406 B
Elixir
19 lines
406 B
Elixir
defmodule MobilizonWeb.Resolvers.Config do
|
|
@moduledoc """
|
|
Handles the config-related GraphQL calls.
|
|
"""
|
|
|
|
alias Mobilizon.Config
|
|
|
|
@doc """
|
|
Gets config.
|
|
"""
|
|
def get_config(_parent, _params, _context) do
|
|
{:ok,
|
|
%{
|
|
name: Config.instance_name(),
|
|
registrations_open: Config.instance_registrations_open?(),
|
|
description: Config.instance_description()
|
|
}}
|
|
end
|
|
end
|