Last active
May 24, 2019 16:13
-
-
Save brunoripa/8e174817cdcd48e59af07130f9728574 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule ElixirTestOneWeb.KeysController do | |
use ElixirTestOneWeb, :controller | |
@spec index(Plug.Conn.t(), any()) :: Plug.Conn.t() | |
def index(conn, _opts) do | |
conn | |
|> json(%{ | |
keys: | |
Application.get_env(:app, :config_keys) | |
|> Enum.into(%{}) | |
}) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment