@doctormole/koa-history-api-fallback
v1.0.2
Published
No configuration, dependency free, koa2 history-api-fallback middleware
Downloads
1
Maintainers
Readme
const Koa = require('koa');
const serve = require('koa-static');
const history = require('@doctormole/koa-history-api-fallback');
const app = new Koa();
app.use(history);
app.use(serve('static'));
app.listen(3000);