/// import {AuthenticationMWs} from "../middlewares/AuthenticationMWs"; import {UserRoles} from "../../common/entities/User"; export class AdminRouter{ constructor(private app) { this.addResetDB(); this.addIndexGalery(); } private addResetDB() { this.app.post("/api/admin/db/reset", AuthenticationMWs.authenticate, AuthenticationMWs.authorise(UserRoles.Admin) //TODO: implement ); }; private addIndexGalery() { this.app.post("/api/admin/gallery/index", AuthenticationMWs.authenticate, AuthenticationMWs.authorise(UserRoles.Admin) //TODO: implement ); }; }