diff --git a/src/index.ts b/src/index.ts index 96f66ea0..dffbbb1a 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", userRouter); -server.use("/api/v1", authRoute); + server.use("/api/v1", adminRouter); server.use("/api/v1", sendEmailRoute); server.use("/api/v1/sms", smsRouter);