Route.d.ts 451 B

123456789101112
  1. import { HttpMethod } from './HttpMethod';
  2. import { HttpHandler } from './HttpHandler';
  3. import { Request } from './Request';
  4. import { Response } from './Response';
  5. declare abstract class Route extends HttpHandler {
  6. protected abstract method: HttpMethod;
  7. protected abstract action: (req: Request, res: Response) => any;
  8. protected get documentation(): string;
  9. getMethod(): HttpMethod;
  10. getDocumentation(): string;
  11. }
  12. export { Route };