12 lines
241 B
TypeScript
12 lines
241 B
TypeScript
import { Router } from 'express';
|
|
|
|
export abstract class HttpHandler {
|
|
public abstract register_handlers(router: Router): void;
|
|
|
|
public get_router (): Router {
|
|
const r = Router ();
|
|
this.register_handlers (r);
|
|
return r;
|
|
}
|
|
}
|