Skip to content

Commit

Permalink
fix: resolved duplicate endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Ibrahim4Grace committed Jul 29, 2024
1 parent 4a8ec87 commit 9612382
Showing 1 changed file with 2 additions and 5 deletions.
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", 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 9612382

Please sign in to comment.