Skip to content

Commit

Permalink
updated readme with example output
Browse files Browse the repository at this point in the history
  • Loading branch information
twof committed Oct 1, 2018
1 parent c7c8565 commit 3552b95
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,22 @@ try router.crudRegister(for: User.self) { controller in
}
```

results in

```
GET /user
GET /user/:id
POST /user
PUT /user/:id
DELETE /user/:id
GET/user/:id/todo
GET /user/:id/todo/:id
POST/user/:id/todo
PUT/user/:id/todo/:id
DELETE/user/:id/todo/:id
```

within the supplied closure, you can also expose routes for related `Parent`s and `Sibling`s

### Future features
Expand Down

0 comments on commit 3552b95

Please sign in to comment.