index.js
575 字节
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const express = require("express");
const config = require('../config/config.js');
const index_1 = require("./job/index");
const index_2 = require("./xxl_job/index");
const app = express();
app.use(require('body-parser').json());
new index_2.XxlJobExecutor(config.xxl_job, index_1.job_handlers).applyMiddleware({ app, appDomain: config.app_domain, path: '' });
app.listen(config.port, () => {
console.log(`job-ydn-zq app listening on port ${config.port}`);
});
//# sourceMappingURL=index.js.map