Skip to content

How to set up 404 handler in case of a custom express app #155

Answered by RobinTail
Isaac-Leonard asked this question in Q&A
Discussion options

You must be logged in to vote

@Isaac-Leonard ,

the feature has been released in version 2.6.0. Please upgrade and so can do the following:

const {notFoundHandler} = attachRouting(config, routing);

app.use(notFoundHandler);

app.listen();

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by RobinTail
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants
Converted from issue

This discussion was converted from issue #145 on October 09, 2021 18:18.