Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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