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

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

    Package Sidebar

    Install

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

    Weekly Downloads

    2

    Version

    1.0.2

    License

    MIT

    Last publish

    Collaborators

    • doctormole