Name: koa-404-handler
Owner: Lad
Description: 404 handler for Lad and Koa (best used with koa-better-error-handler)
Created: 2017-09-13 04:50:45.0
Updated: 2017-11-30 12:27:33.0
Pushed: 2018-01-01 01:49:01.0
Homepage: https://lad.js.org
Size: 135
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
404 handler for Lad and Koa (best used with koa-better-error-handler)
npm:
install koa-404-handler
yarn:
add koa-404-handler
t errorHandler = require('koa-better-error-handler');
t koa404Handler = require('koa-404-handler');
..
verride koa's undocumented error handler
context.onerror = errorHandler;
.. routes go here ...
use(koa404Handler);
listen();
| Name | Website | | ————– | ————————– | | Nick Baugh | http://niftylettuce.com/ |