mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-24 08:54:08 +00:00
23 lines
460 B
Elixir
23 lines
460 B
Elixir
defmodule MobilizonWeb.Schema.ConfigType do
|
|
@moduledoc """
|
|
Schema representation for User
|
|
"""
|
|
use Absinthe.Schema.Notation
|
|
|
|
alias MobilizonWeb.Resolvers.Config
|
|
|
|
@desc "A config object"
|
|
object :config do
|
|
# Instance name
|
|
field(:name, :string)
|
|
|
|
field(:registrations_open, :boolean)
|
|
end
|
|
|
|
object :config_queries do
|
|
@desc "Get the instance config"
|
|
field :config, :config do
|
|
resolve(&Config.get_config/3)
|
|
end
|
|
end
|
|
end
|