♻️ refactor(account, order, plan, profile, support, email): restructure application modules and enhance error handling
Updated Docker configuration, refactored middleware for improved error handling, and restructured account, order, plan, profile, and support modules, including their routes, services, and validations. Enhanced email processing queues and utilities for token generation, pagination, and response management to streamline the application architecture and enhance maintainability.
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import { Router } from "express";
|
||||
import accountRouter from "./app/modules/account/account.route.js";
|
||||
import orderRoute from "./app/modules/order/order.route.js";
|
||||
import planRoute from "./app/modules/plan/plan.route.js";
|
||||
import profileRoute from "./app/modules/profile/profile.route.js";
|
||||
import supportRoute from "./app/modules/support/support.route.js";
|
||||
const appRouter = Router();
|
||||
const moduleRoutes = [
|
||||
{ path: "/order", route: orderRoute },
|
||||
{ path: "/support", route: supportRoute },
|
||||
{ path: "/plan", route: planRoute },
|
||||
{ path: "/profile", route: profileRoute },
|
||||
{ path: "/auth", route: accountRouter },
|
||||
];
|
||||
moduleRoutes.forEach((route) => appRouter.use(route.path, route.route));
|
||||
export default appRouter;
|
||||
Reference in New Issue
Block a user