From bec7dbff9e1e28c102a62f8c5f558a20707a33c7 Mon Sep 17 00:00:00 2001 From: Hanen Alrwasheda <alrwasheda@mi.fu-berlin.de> Date: Mon, 17 Jan 2022 19:08:44 +0100 Subject: [PATCH] Renaming --- .../{boatControllers.controllers.ts => boat.controllers.ts} | 0 ...peControllers.controllers.ts => boatType.controllers.ts} | 0 ...rollers.controllers.ts => createLogEntry.controllers.ts} | 0 .../{userControllers.controllers.ts => user.controllers.ts} | 0 server/src/routes/{boatRoutes.routes.ts => boat.routes.ts} | 2 +- .../routes/{boatTypeRoutes.routes.ts => boatType.routes.ts} | 2 +- ...ateLogEntryRoutes.routes.ts => createLogEntry.routes.ts} | 2 +- server/src/routes/user.routes.ts | 2 +- server/src/server.ts | 6 +++--- 9 files changed, 7 insertions(+), 7 deletions(-) rename server/src/controllers/{boatControllers.controllers.ts => boat.controllers.ts} (100%) rename server/src/controllers/{boatTypeControllers.controllers.ts => boatType.controllers.ts} (100%) rename server/src/controllers/{createLogEntryControllers.controllers.ts => createLogEntry.controllers.ts} (100%) rename server/src/controllers/{userControllers.controllers.ts => user.controllers.ts} (100%) rename server/src/routes/{boatRoutes.routes.ts => boat.routes.ts} (94%) rename server/src/routes/{boatTypeRoutes.routes.ts => boatType.routes.ts} (93%) rename server/src/routes/{createLogEntryRoutes.routes.ts => createLogEntry.routes.ts} (95%) diff --git a/server/src/controllers/boatControllers.controllers.ts b/server/src/controllers/boat.controllers.ts similarity index 100% rename from server/src/controllers/boatControllers.controllers.ts rename to server/src/controllers/boat.controllers.ts diff --git a/server/src/controllers/boatTypeControllers.controllers.ts b/server/src/controllers/boatType.controllers.ts similarity index 100% rename from server/src/controllers/boatTypeControllers.controllers.ts rename to server/src/controllers/boatType.controllers.ts diff --git a/server/src/controllers/createLogEntryControllers.controllers.ts b/server/src/controllers/createLogEntry.controllers.ts similarity index 100% rename from server/src/controllers/createLogEntryControllers.controllers.ts rename to server/src/controllers/createLogEntry.controllers.ts diff --git a/server/src/controllers/userControllers.controllers.ts b/server/src/controllers/user.controllers.ts similarity index 100% rename from server/src/controllers/userControllers.controllers.ts rename to server/src/controllers/user.controllers.ts diff --git a/server/src/routes/boatRoutes.routes.ts b/server/src/routes/boat.routes.ts similarity index 94% rename from server/src/routes/boatRoutes.routes.ts rename to server/src/routes/boat.routes.ts index e5d1f2e..b01b880 100644 --- a/server/src/routes/boatRoutes.routes.ts +++ b/server/src/routes/boat.routes.ts @@ -1,7 +1,7 @@ import { Router } from "express"; import { body } from "express-validator"; import validateToken from "../middleware/validateToken"; -import boatControllers from "../controllers/boatControllers.controllers"; +import boatControllers from "../controllers/boat.controllers"; import handleValidationResult from "../middleware/handleValidationResult"; const boatsRouter = Router(); diff --git a/server/src/routes/boatTypeRoutes.routes.ts b/server/src/routes/boatType.routes.ts similarity index 93% rename from server/src/routes/boatTypeRoutes.routes.ts rename to server/src/routes/boatType.routes.ts index 10e224d..410b3ee 100644 --- a/server/src/routes/boatTypeRoutes.routes.ts +++ b/server/src/routes/boatType.routes.ts @@ -1,6 +1,6 @@ import { Router } from "express"; import { body } from "express-validator"; -import boatTypeControllers from "../controllers/boatTypeControllers.controllers"; +import boatTypeControllers from "../controllers/boatType.controllers"; import handleValidationResult from "../middleware/handleValidationResult"; import validateToken from "../middleware/validateToken"; diff --git a/server/src/routes/createLogEntryRoutes.routes.ts b/server/src/routes/createLogEntry.routes.ts similarity index 95% rename from server/src/routes/createLogEntryRoutes.routes.ts rename to server/src/routes/createLogEntry.routes.ts index 6de9102..92f3fe7 100644 --- a/server/src/routes/createLogEntryRoutes.routes.ts +++ b/server/src/routes/createLogEntry.routes.ts @@ -1,7 +1,7 @@ import { Router } from "express"; import { body } from "express-validator"; import handleValidationResult from "../middleware/handleValidationResult"; -import createLogEntryController from "../controllers/createLogEntryControllers.controllers"; +import createLogEntryController from "../controllers/createLogEntry.controllers"; const entryRouter = Router(); diff --git a/server/src/routes/user.routes.ts b/server/src/routes/user.routes.ts index 3da97ed..9d19034 100644 --- a/server/src/routes/user.routes.ts +++ b/server/src/routes/user.routes.ts @@ -1,6 +1,6 @@ import { Router } from "express"; import validateToken from "../middleware/validateToken"; -import userControllers from "../controllers/userControllers.controllers"; +import userControllers from "../controllers/user.controllers"; import handleValidationResult from "../middleware/handleValidationResult"; import { body } from "express-validator"; diff --git a/server/src/server.ts b/server/src/server.ts index e1d9da3..5616f3d 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -8,10 +8,10 @@ import showTables from "./db/DB_Information/showDBTables"; import showTableContent from "./db/DB_Information/showTableContent"; import accountsRouter from "./routes/accounts.routes"; import authRouter from "./routes/auth.routes"; -import boatsRouter from "./routes/boatRoutes.routes"; +import boatsRouter from "./routes/boat.routes"; import userRouter from "./routes/user.routes"; -import boatTypeRouter from "./routes/boatTypeRoutes.routes"; -import entryRouter from "./routes/createLogEntryRoutes.routes"; +import boatTypeRouter from "./routes/boatType.routes"; +import entryRouter from "./routes/createLogEntry.routes"; let init = async () => { //DB -- GitLab