mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-14 11:23:17 +02:00
21 lines
315 B
TypeScript
21 lines
315 B
TypeScript
|
///<reference path="../../typings/main.d.ts"/>
|
||
|
|
||
|
import {RenderingMWs} from "../middlewares/RenderingMWs";
|
||
|
|
||
|
export class ErrorRouter{
|
||
|
constructor(private app) {
|
||
|
|
||
|
this.addError();
|
||
|
}
|
||
|
|
||
|
private addError() {
|
||
|
this.app.use("/api/*",
|
||
|
RenderingMWs.renderError
|
||
|
);
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
}
|