legendary-doc-site/apps/admin/lib/kaffy/config.ex

14 lines
311 B
Elixir
Raw Normal View History

defmodule Legendary.Admin.Kaffy.Config do
@moduledoc """
Pull in the resource list for the admin from the application config.
"""
def create_resources(_conn) do
config = Application.get_env(:admin, Legendary.Admin)
{resources, _} = Keyword.pop(config, :resources, [])
resources
end
end