From 9d3afbb5b8363990c0e69f915d727759427bdb66 Mon Sep 17 00:00:00 2001 From: Kavi Date: Tue, 10 Sep 2024 12:48:54 -0400 Subject: [PATCH] Updated File Names --- server/src/index.ts | 2 +- server/src/routes/auth/{index.ts => authRouteHandler.ts} | 0 server/src/routes/{index.ts => mainRouteHandler.ts} | 4 ++-- server/src/routes/user/{index.ts => userRouteHandler.ts} | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) rename server/src/routes/auth/{index.ts => authRouteHandler.ts} (100%) rename server/src/routes/{index.ts => mainRouteHandler.ts} (68%) rename server/src/routes/user/{index.ts => userRouteHandler.ts} (88%) 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();