astroboy
Version:
Astroboy(阿童木)is a Nodejs SFB(Separation of Front and Back ends) framework, built on koa2.
13 lines • 352 B
JavaScript
;
/**
* https://github.com/koajs/static
*/
// @ts-ignore typings missed
const staticM = require("koa-static");
const astroboyStaticFactory = function (options, app) {
let fn = staticM(options.root, options);
fn._name = 'static';
return fn;
};
module.exports = astroboyStaticFactory;
//# sourceMappingURL=astroboy-static.js.map