Permalink
Browse files

Changed readme

  • Loading branch information...
1 parent 4989950 commit 4dfd4bd30e9ed0857b456eba0c6c2fb370ef81a8 @whoamicz committed Mar 12, 2013
Showing with 10 additions and 1 deletion.
  1. +10 −1 README.md
View
@@ -18,6 +18,9 @@ Easy way for using tree routes in Express.js
}},
'comments': { get: controller, post: controller, content: {
':comment_id': { get: controller, put: controller, del: controller }
+ }},
+ 'owners': { get: controller, post: controller, content: {
+ ':owner_id': { get: controller, put: controller, del: controller }
}}
}}
}}
@@ -37,9 +40,15 @@ Easy way for using tree routes in Express.js
app.put('/products/:product_id/tags/:tag_id', controller);
app.del('/products/:product_id/tags/:tag_id', controller);
- app.get('/products/:product_id/tags', controller);
+ app.get('/products/:product_id/comments', controller);
app.post('/products/:product_id/comments', controller);
app.get('/products/:product_id/comments/:comment_id', controller);
app.put('/products/:product_id/comments/:comment_id', controller);
app.del('/products/:product_id/comments/:comment_id', controller);
+
+ app.get('/products/:product_id/owners', controller);
+ app.post('/products/:product_id/owners', controller);
+ app.get('/products/:product_id/owners/:owner_id', controller);
+ app.put('/products/:product_id/owners/:owner_id', controller);
+ app.del('/products/:product_id/owners/:owner_id', controller);

0 comments on commit 4dfd4bd

Please sign in to comment.