text: "use strict";
  Object.defineProperty(exports, "__esModule", { value: true });
  const express = require("express");
  const logger = require("morgan");
  const bodyParser = require("body-parser");
  const CustomRouter_1 = require("./routes/CustomRouter");
  // Creates and configures an ExpressJS web server.
  class App {
      //Run configuration methods on the Express instance.
      constructor() {
          this.express = express();
          this.middleware();
          this.routes();
      }
      middleware() {
          this.express.use(logger('dev'));
          this.express.use(bodyParser.json());
          this.express.use(bodyParser.urlencoded({ extended: false }));
      }
      // Configure API endpoints.
      routes() {
          /* This is just to get up and running, and to make sure what we've got is
           * working so far. This function will change when we start to add more
           * API endpoints */
          let router = express.Router();
          // placeholder route handler
          router.get('/', (req, res, next) => {
              res.json({});
          });
          this.express.use('/', router);
          this.express.use('/arti-4208/inventory/api/v1_0_0/enroll_return', CustomRouter_1.default);
      }
  }
  exports.default = new App().express;
  