koa-static-api
v0.5.8
Published
this koa middleware for static content. Work with node.js version > 4
Maintainers
Readme
Static file serving middleware. This module uses as dependency only core node.js modules. Position for this middleware do not important
Installation
$ npm install koa-static-apiAPI
var koa = require('koa');
var app = koa();
var staticFolder = require('koa-static-api')
app.use(staticFolder(opt));Options
cacheBrowser cache max-age in milliseconds. Defaults to 'no-cache'rootroot directory string. nothing above this root directory can be served. Defaults to '/public'indexindex file. Defaults to 'index.html'
License
ISC
