Skip to content

Instantly share code, notes, and snippets.

@chrismccord
Created January 26, 2014 22:15
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 chrismccord/8640170 to your computer and use it in GitHub Desktop.
Save chrismccord/8640170 to your computer and use it in GitHub Desktop.
Plug use
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