From 5b11e698996d3ad564f2b36044c409e77c21d64c Mon Sep 17 00:00:00 2001 From: Anthony Alaribe Date: Wed, 12 Jun 2024 23:03:01 +0200 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index d2c7e50..ee59283 100644 --- a/README.md +++ b/README.md @@ -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)); ```