Skip to content

Instantly share code, notes, and snippets.

@aikchun
Forked from alexpchin/restful_routes.md
Created August 10, 2018 07:07
Show Gist options
  • Save aikchun/b53e3f10308db436af6dba391f8c25a9 to your computer and use it in GitHub Desktop.
Save aikchun/b53e3f10308db436af6dba391f8c25a9 to your computer and use it in GitHub Desktop.
7 Restful Routes
URL HTTP Verb Action
/photos/ GET index
/photos/new GET new
/photos POST create
/photos/:id GET show
/photos/:id/edit GET edit
/photos/:id PATCH/PUT update
/photos/:id DELETE destroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment