Created
January 25, 2015 12:17
-
-
Save rossjones/64dca4cc9b17b3866198 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
pipeline :browser do | |
plug :accepts, ~w(html) | |
plug :fetch_session | |
plug :fetch_flash | |
plug :protect_from_forgery | |
end | |
pipeline :api do | |
plug :accepts, ~w(json) | |
end | |
scope "/", Cedar do | |
pipe_through :browser # Use the default browser stack | |
get "/", PageController, :index, as: :pages | |
get "/rules/", EditorController, :editor | |
get "/api/v0.1/", Api01Controller, :index | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment