diff --git a/src/controllers/contactController.ts b/src/controllers/contactController.ts index db2f40f8..577ec548 100644 --- a/src/controllers/contactController.ts +++ b/src/controllers/contactController.ts @@ -6,7 +6,7 @@ const contactService = new ContactService(); /** * @swagger - * /api/v1/contact: + * /api/v1/contact-us: * post: * summary: Submit a contact form * description: Allows users to submit their contact details and message. diff --git a/src/data-source.ts b/src/data-source.ts index c081a0f2..d42f9e7d 100644 --- a/src/data-source.ts +++ b/src/data-source.ts @@ -18,9 +18,9 @@ const AppDataSource = new DataSource({ migrationsTableName: "migrations", // ssl: true, // extra: { - // ssl: { - // rejectUnauthorized: false, - // }, + // ssl: { + // rejectUnauthorized: false, + // }, // }, }); diff --git a/src/index.ts b/src/index.ts index bdc1f428..7b0cfba6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -49,7 +49,7 @@ server.use( ], }), ); -server.use("/api/v1", authRoute); + server.use(Limiter); server.use(express.json()); server.use(express.urlencoded({ extended: true })); @@ -63,7 +63,7 @@ server.get("/api/v1", (req: Request, res: Response) => { // }); server.use("/api/v1", authRoute); server.use("/api/v1", userRouter); - +server.use("/api/v1", authRoute); server.use("/api/v1", adminRouter); server.use("/api/v1", sendEmailRoute); server.use("/api/v1/sms", smsRouter); @@ -78,18 +78,15 @@ server.use("/api/v1", blogRouter); server.use("/api/v1", notificationRouter); server.use("/api/v1", paymentRouter); server.use("/api/v1", jobRouter); -server.use("/api/v1", orgRouter); server.use("/api/v1", exportRouter); server.use("/api/v1", testimonialRoute); server.use("/api/v1", blogRouter); server.use("/api/v1/product", productRouter); server.use("/api/v1/settings", notificationRouter); server.use("/api/v1/jobs", jobRouter); -server.use("/api/v1", orgRouter); server.use("/api/v1", authMiddleware, orgRouter); server.use("/api/v1", contactRouter); server.use("/api/v1", jobRouter); -server.use("/api/v1", orgRouter); server.use("/api/v1", updateRouter); server.use("/api/v1/queues", ServerAdapter.getRouter()); server.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerSpec));