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.
 
 
 

16 lines
341 B

'use strict'
const Cli = require('../')
const cacheControl = require('koa-cache-control')
const cliData = require('../lib/cli-data')
cliData.optionDefinitions.push({ name: 'maxage', group: 'misc' })
const ws = new Cli()
ws.middleware
.addLogging('dev')
.add(cacheControl({
maxAge: 15
}))
.addStatic()
.addIndex()
ws.listen()