Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active August 19, 2017 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/8b7981f80f95315ef925b7eb213ee1b6 to your computer and use it in GitHub Desktop.
Save shankardevy/8b7981f80f95315ef925b7eb213ee1b6 to your computer and use it in GitHub Desktop.
defmodule MangoWeb.Admin.SessionController do
use MangoWeb, :controller
plug :set_layout
def new(conn, _params) do
conn
|> render("new.html")
end
defp set_layout(conn, _) do
conn
|> put_layout("admin_login.html")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment