Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defmodule PhoenixApi.Router do
- use PhoenixApi.Web, :router
- pipeline :api do
- plug :accepts, ["json"]
- end
- scope "/api", PhoenixApi do
- pipe_through :api
- end
- scope "/", PhoenixApi do
- pipe_through :api
- get "/", WelcomeController, :index
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement