Created
February 23, 2015 08:39
-
-
Save nesquena/9c8a753dab20c6df127d 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
Api::App.controllers :posts, map: "api/v1/posts" do | |
get :index, map: "" do | |
end | |
post :create, map: "" do | |
end | |
get :show, map: ":id" do | |
end | |
patch :update, map: ":id" do | |
end | |
delete :destroy, map: ":id" do | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment