Skip to content

Commit

Permalink
fix: reverse changes in routes/child/.autohooks.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-michelet committed Mar 8, 2024
1 parent 8d2d622 commit 7f6da9c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/commonjs/autohooks/routes/child/.autohooks.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
module.exports = async function (app, opts, next) {
app.setNotFoundHandler(() => {
throw new Error("foo");
});

app.addHook('onRequest', async (req, reply) => {
req.hooked = req.hooked || []
req.hooked.push('child')
next()
})
}

0 comments on commit 7f6da9c

Please sign in to comment.