GetIndex.js 548 B

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