Created
July 26, 2018 07:03
-
-
Save geongeorge/6d66b74e3b2a5de151f30b1c84903ffe to your computer and use it in GitHub Desktop.
RESTful Routing
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
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