Permalink
Browse files

Some fixes in readme

  • Loading branch information...
1 parent bcd7407 commit 7f6e2001949f9644bc87dfc6a8e617911894071a @whoamicz committed Mar 12, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
@@ -11,13 +11,13 @@ Easy way for using tree routes in Express.js
### Create this
app.use(treeRouter({
- '**products**': { get: controller, post: controller, content: {
- '**:product_id**': { get: controller, put: controller, del: controller, content: {
- '**tags**': { get: controller, post: controller, content: {
- '**:tag_id**': { get: controller, put: controller, del: controller }
+ 'products': { get: controller, post: controller, content: {
+ ':product_id': { get: controller, put: controller, del: controller, content: {
+ 'tags': { get: controller, post: controller, content: {
+ ':tag_id': { get: controller, put: controller, del: controller }
}},
- '**comments**': { get: controller, post: controller, content: {
- '**:comment_id**': { get: controller, put: controller, del: controller }
+ 'comments': { get: controller, post: controller, content: {
+ ':comment_id': { get: controller, put: controller, del: controller }
}}
}}
}}

0 comments on commit 7f6e200

Please sign in to comment.