Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@doctormole/koa-history-api-fallback

1.0.2 • Public • Published

Zero configuration Koa 2 history api fallback for SPA

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);

Install

npm i @doctormole/koa-history-api-fallback

DownloadsWeekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • avatar