-
-
Save shankardevy/8b7981f80f95315ef925b7eb213ee1b6 to your computer and use it in GitHub Desktop.
This file contains 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 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