| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1x 1x 1x 1x | 'use strict'
const fourOhFour = module.exports = { }
const helper = require('./helper.js')
const router = require('../router.js')
fourOhFour.register = () => {
router.bind404((request, res) => helper.handleError(request, res, {
status: '404',
code: 'EINVALID',
title: 'Invalid Route',
detail: 'This is not the API you are looking for?'
}))
}
|