Created
January 26, 2014 22:15
-
-
Save chrismccord/8640170 to your computer and use it in GitHub Desktop.
Plug use
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 Router do | |
use Phoenix.Router, port: 4000 | |
use Plug.Static, mount: "/public" | |
use Plug.EncryptedSession, secret: "203802482048204820" | |
get "pages/:page", PagesController, :show, as: :page | |
get "files/*path", FilesController, :show | |
get "profiles/user-:id", UsersController, :show | |
resources "users", UsersController | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment