GetIndex.ts 390 B

12345678910111213
  1. import {Request, Response} from 'express';
  2. import { Route, HttpMethod, StatusCodes } from '../base/http';
  3. class GetIndex extends Route {
  4. protected order = 0;
  5. protected method = HttpMethod.GET;
  6. protected route = '/';
  7. protected action = (req: Request, res: Response): any => {
  8. res.status(StatusCodes.OK).send('org.crazydoctor.expressts server sample page');
  9. };
  10. }
  11. export { GetIndex };