All files / lib/routes z404.js

66.67% Statements 4/6
100% Branches 0/0
0% Functions 0/2
80% Lines 4/5
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?'
  }))
}