stackpress
Version:
Incept is a content management framework.
14 lines (13 loc) • 431 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = plugin;
const index_js_1 = __importDefault(require("./events/index.js"));
function plugin(ctx) {
ctx.on('listen', (_req, _res, ctx) => {
ctx.use((0, index_js_1.default)());
});
}
;