This repository has been archived on 2020-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
requestor/lib/HttpHandler.ts

12 lines
241 B
TypeScript
Raw Permalink Normal View History

2020-04-17 11:03:15 +02:00
import { Router } from 'express';
2020-05-02 21:48:22 +02:00
export abstract class HttpHandler {
2020-04-17 11:03:15 +02:00
public abstract register_handlers(router: Router): void;
2020-04-22 22:11:19 +02:00
public get_router (): Router {
const r = Router ();
this.register_handlers (r);
return r;
}
2020-04-17 11:03:15 +02:00
}