You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
345 B

'use strict'
const Koa = require('koa')
const localWebServer = require('../')
const cacheControl = require('koa-cache-control')
const convert = require('koa-convert')
const app = new Koa()
const ws = localWebServer({
'no-cache': true,
log: { format: 'dev' }
})
app.use(convert(cacheControl({
maxAge: 15
})))
app.use(ws)
app.listen(8000)