Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/seregpie/koasinglepage
A single page application middleware.
https://github.com/seregpie/koasinglepage
app file index koa page public send single spa static
Last synced: 3 days ago
JSON representation
A single page application middleware.
- Host: GitHub
- URL: https://github.com/seregpie/koasinglepage
- Owner: SeregPie
- License: mit
- Created: 2018-07-09T06:25:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T11:37:48.000Z (over 5 years ago)
- Last Synced: 2024-12-14T14:34:28.285Z (about 2 months ago)
- Topics: app, file, index, koa, page, public, send, single, spa, static
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KoaSinglePage
```
KoaSinglePage(root, {
index = 'index.html',
})
```A single page application middleware.
## setup
### npm
```shell
npm i koa-single-page
```### node
```javascript
let KoaSinglePage = require('koa-single-page');
```## usage
```javascript
let app = new Koa();
app.use(KoaSinglePage('public'));
```