GetIndex.js 520 B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. const http_1 = require("../base/http");
  4. class GetIndex extends http_1.Route {
  5. constructor() {
  6. super(...arguments);
  7. this.order = 0;
  8. this.method = http_1.HttpMethod.GET;
  9. this.route = '/';
  10. this.action = (req, res) => {
  11. res.status(http_1.StatusCodes.OK).send('org.crazydoctor.expressts server sample page');
  12. };
  13. }
  14. }
  15. exports.default = GetIndex;
  16. //# sourceMappingURL=GetIndex.js.map