diff --git a/server/src/index.ts b/server/src/index.ts index adf3b3e23..a0ccbb98e 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -18,7 +18,7 @@ import Mailgun from "mailgun.js"; import { messagesCollection } from "./utilities/firebaseInit"; import { calculateDistanceInMeters } from "./actions/calculateDistance"; import { scheduleCron } from "./actions/deleter"; -import mainRouter from "./routes"; +import mainRouter from "./routes/mainRouteHandler"; const { createServer } = require("http"); const { Server } = require("socket.io"); diff --git a/server/src/routes/auth/index.ts b/server/src/routes/auth/authRouteHandler.ts similarity index 100% rename from server/src/routes/auth/index.ts rename to server/src/routes/auth/authRouteHandler.ts diff --git a/server/src/routes/index.ts b/server/src/routes/mainRouteHandler.ts similarity index 68% rename from server/src/routes/index.ts rename to server/src/routes/mainRouteHandler.ts index 55ab93ea0..35aacc16e 100644 --- a/server/src/routes/index.ts +++ b/server/src/routes/mainRouteHandler.ts @@ -1,6 +1,6 @@ import { Router } from "express"; -import authRouter from "./auth"; -import userRouter from "./user"; +import authRouter from "./auth/authRouteHandler"; +import userRouter from "./user/userRouteHandler"; import errorRouter from "./error/error"; const mainRouter = Router(); diff --git a/server/src/routes/user/index.ts b/server/src/routes/user/userRouteHandler.ts similarity index 88% rename from server/src/routes/user/index.ts rename to server/src/routes/user/userRouteHandler.ts index 05b389703..dea0b91e0 100644 --- a/server/src/routes/user/index.ts +++ b/server/src/routes/user/userRouteHandler.ts @@ -2,7 +2,7 @@ import { Router } from "express"; import createUserRoute from "./create"; import deleteUserRoute from "./delete"; import updateUserRoute from "./update"; -import nearbyUserRoute from "./getNearby"; +import nearbyUserRoute from "./nearby"; const userRouter = Router();