jsev
Version:
Environment for building Web API's.
16 lines • 586 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const koa_static_1 = __importDefault(require("koa-static"));
const path_1 = __importDefault(require("path"));
exports.default = (env) => {
const root = path_1.default.join(env.rootPath, "..", "static");
env.log.info(`Static file path: ${root}`);
return {
func: koa_static_1.default(root),
rank: 3,
};
};
//# sourceMappingURL=static.js.map