Skip to content

Instantly share code, notes, and snippets.

@geongeorge
Created July 26, 2018 07:03
Show Gist options
  • Save geongeorge/6d66b74e3b2a5de151f30b1c84903ffe to your computer and use it in GitHub Desktop.
Save geongeorge/6d66b74e3b2a5de151f30b1c84903ffe to your computer and use it in GitHub Desktop.
RESTful Routing
RESTful Routing
---------------
7 RESTful Routes for a blog app
Name Path HTTP Verb Purpose
-------------------------------------------
Index /blogs GET List all Blogs
New /blogs/new GET Show add new Form
Create /blogs/create POST Create new Post
Show /blog/:id GET Show a Blog Post
Edit /blog/:id/edit GET Show Edit Page
Update /blogs/:id PUT Update info
Destroy /blogs/:id DELETE Delete
Code: https://github.com/jithindasad/Blog-app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment