app.js 755 B

123456789101112131415161718192021
  1. "use strict";
  2. var __importDefault = (this && this.__importDefault) || function (mod) {
  3. return (mod && mod.__esModule) ? mod : { "default": mod };
  4. };
  5. Object.defineProperty(exports, "__esModule", { value: true });
  6. var express_1 = __importDefault(require("express"));
  7. var loadConfig_1 = require("./until/loadConfig");
  8. var serverConfig = (0, loadConfig_1.loadServerConfig)('./config/Server.json');
  9. if (serverConfig === null) {
  10. console.log('无法找到路径');
  11. }
  12. else {
  13. }
  14. var app = (0, express_1.default)();
  15. app.get('/', function (req, res, next) {
  16. res.send('Hello World!');
  17. });
  18. app.listen(serverConfig.webPort, function () {
  19. console.log("Example app listening on port ".concat(serverConfig.webPort, "!"));
  20. });
  21. //# sourceMappingURL=app.js.map