Route.d.ts 420 B

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