Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. defmodule PhoenixApi.Router do
  2. use PhoenixApi.Web, :router
  3.  
  4. pipeline :api do
  5. plug :accepts, ["json"]
  6. end
  7.  
  8. scope "/api", PhoenixApi do
  9. pipe_through :api
  10. end
  11.  
  12. scope "/", PhoenixApi do
  13. pipe_through :api
  14. get "/", WelcomeController, :index
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement