UNPKG
nexi
Version:
latest (3.0.1)
3.0.1
3.0.0
2.0.1
2.0.0
1.10.11
1.10.10
1.10.9
1.10.8
1.10.7
1.10.6
1.10.5
1.10.4
1.10.3
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.5
1.8.4
1.8.3
1.8.2
1.8.1
1.8.0
1.7.3
1.7.2
1.7.1
1.7.0
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.0
1.3.1
1.3.0
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.1.1
0.1.0
Nodejs rails-ish port
github.com/tswayne/nexi
tswayne/nexi
nexi
/
src
/
middleware
/
middlewares
/
common
/
not-found.js
10 lines
(8 loc)
•
214 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
const
createError =
require
(
'http-errors'
)
const
notFoundMiddleware
= (
) => {
const
notFound
= (
req, res, next
) => {
return
next
(
createError
(
404
)) }
return
notFound }
module
.
exports
= notFoundMiddleware