Skip to content

Commit

Permalink
Merge pull request #392 from Ibrahim4Grace/feat/contact-us
Browse files Browse the repository at this point in the history
fix: change contact-us route
  • Loading branch information
AdeGneus authored Jul 29, 2024
2 parents 4d3c882 + 9612382 commit 3251844
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/controllers/contactController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/data-source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ const AppDataSource = new DataSource({
migrationsTableName: "migrations",
// ssl: true,
// extra: {
// ssl: {
// rejectUnauthorized: false,
// },
// ssl: {
// rejectUnauthorized: false,
// },
// },
});

Expand Down
7 changes: 2 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ server.use(
],
}),
);
server.use("/api/v1", authRoute);

server.use(Limiter);
server.use(express.json());
server.use(express.urlencoded({ extended: true }));
Expand All @@ -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);
Expand All @@ -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));
Expand Down

0 comments on commit 3251844

Please sign in to comment.