koa-single-page
v19.0.0
Published
A single page application middleware.
Downloads
70
Maintainers
Readme
KoaSinglePage
KoaSinglePage(root, {
index = 'index.html',
})
A single page application middleware.
setup
npm
npm i koa-single-page
node
let KoaSinglePage = require('koa-single-page');
usage
let app = new Koa();
app.use(KoaSinglePage('public'));