Skip to content

Commit

Permalink
Upgrading woodland router for res.json() & res.status() for mid…
Browse files Browse the repository at this point in the history
…dleware interop
  • Loading branch information
avoidwork committed Nov 30, 2017
1 parent 82118d0 commit d18b1c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ The `/assets/*` route is reserved for the HTML browsable interface assets; pleas
### Request Helpers
Tensō decorates `req` with "helpers" such as `req.ip`, & `req.parsed`. `PATCH`, `PUT`, & `POST` payloads are available as `req.body`. Sessions are available as `req.session` when using `local` authentication.

Tensō decorates `res` with "helpers" such as `res.send()`, `res.status()`, & `res.json()`.

## Responses
Responses will have a standard shape, and will be utf-8 by default. The result will be in `data`. Hypermedia (pagination & links) will be in `links:[ {"uri": "...", "rel": "..."}, ...]`, & also in the `Link` HTTP header.

Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "6.0.8",
"version": "6.1.0",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down Expand Up @@ -50,7 +50,7 @@
"tiny-uuid4": "^1.0.1",
"tiny-xml": "^1.0.6",
"uws": "^8.14.1",
"woodland": "^4.0.6",
"woodland": "^4.1.0",
"yamljs": "^0.3.0"
},
"devDependencies": {
Expand Down

0 comments on commit d18b1c3

Please sign in to comment.