Created
October 17, 2016 19:48
-
-
Save lasseebert/fa1ef0ce3e1a0f8bcc3e75e7c5db346b 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
defmodule MyApp.Router do | |
use MyApp.Web, :router | |
pipeline :api do | |
plug :accepts, ["json"] | |
end | |
scope "/", MyApp do | |
pipe_through :api | |
resources "/users", UserController, only: [:create] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment