Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyalaribe authored Jun 12, 2024
1 parent b5f6fae commit 5b11e69
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ app.get("/", (req, res) => {
res.json({ hello: "Hello world!" });
});

// The APItoolkit error handler must be before any other error middleware and after all controllers
app.use(apitoolkitClient.errorHandler);

app.listen(port, () => console.log("App running on port: " + port));
```

Expand Down

0 comments on commit 5b11e69

Please sign in to comment.