remove service regsitry, remove unused middleware
This commit is contained in:
1 parent
f03ded4109
commit
44079f2eb8
14 files changed
+96
-265
No files matched your search
@@ -1,16 +1,15 @@
|
||||
import { Router } from "express";
|
||||
import { verifyJWT } from "../../middleware/v1/verifyJWT.js";
|
||||
import multer from "multer";
|
||||
const upload = multer();
|
||||
|
||||
class StatusPageRoutes {
|
||||
constructor(statusPageController) {
|
||||
constructor(statusPageController, verifyJWT) {
|
||||
this.router = Router();
|
||||
this.statusPageController = statusPageController;
|
||||
this.initRoutes();
|
||||
this.initRoutes(verifyJWT);
|
||||
}
|
||||
|
||||
initRoutes() {
|
||||
initRoutes(verifyJWT) {
|
||||
this.router.get("/", this.statusPageController.getStatusPage);
|
||||
this.router.get("/team", verifyJWT, this.statusPageController.getStatusPagesByTeamId);
|
||||
|
||||
|
||||
Reference in new issue
Block a user