Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1.  
  2. pipeline :browser do
  3. plug :accepts, ~w(html)
  4. plug :fetch_session
  5. plug :fetch_flash
  6. plug :protect_from_forgery
  7. end
  8.  
  9. pipeline :api do
  10. plug :accepts, ~w(json)
  11. end
  12.  
  13. scope "/", Cedar do
  14. pipe_through :browser # Use the default browser stack
  15.  
  16. get "/", PageController, :index, as: :pages
  17. get "/rules/", EditorController, :editor
  18. get "/api/v0.1/", Api01Controller, :index
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement