Skip to content

Commit

Permalink
πŸ“ Tidied up example options code block
Browse files Browse the repository at this point in the history
  • Loading branch information
lukecarr committed Nov 19, 2021
1 parent 61a2b7d commit 08ccb00
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,15 @@ You can supply options as an additional parameter to `withError` and `withTempla
returned by the template) to configure Houston's behaviour:

```js
const { withError } = require("@moducate/houston");
const app = require("express")();
...

app.get("/not-found", (_, res) => {
return withError(
res,
{
type: "https://example.com/not-found",
status: 404
},
{ /* options */ },
);
});
withError(
res,
{ type: "https://example.com/not-found", status: 404},
{ /* options */ },
);

...
```

### `options.stringify`
Expand Down

0 comments on commit 08ccb00

Please sign in to comment.