remove service regsitry, remove unused middleware

This commit is contained in:
Alex Holliday committed 2026-01-20 22:40:06 +00:00
1 parent f03ded4109
commit 44079f2eb8
14 files changed
+96 -265

No files matched your search

+3 -4
View File
@@ -1,18 +1,17 @@
import { Router } from "express";
import { verifyJWT } from "../../middleware/v1/verifyJWT.js";
import { isAllowed } from "../../middleware/v1/isAllowed.js";
import multer from "multer";
const upload = multer();
class AuthRoutes {
constructor(authController) {
constructor(authController, verifyJWT) {
this.router = Router();
this.authController = authController;
this.initRoutes();
this.initRoutes(verifyJWT);
}
initRoutes() {
initRoutes(verifyJWT) {
this.router.post("/register", upload.single("profileImage"), this.authController.registerUser);
this.router.post("/login", this.authController.loginUser);