@@ -143,10 +143,6 @@ for (const route of routes) {
}
}
app.all(/.*/,(req,res,next)=>{
next(newDefaultError(404,`Can't find ${req.originalUrl} on this server!`,null,"NotFound"))
})
app.use((err,req,res,next)=>{
conststatusCode=err.statusCode||err.code||500
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.