From bc4d1efe2659ff12f3b90935bc88d014e7a79398 Mon Sep 17 00:00:00 2001 From: WhiteSnake Date: Thu, 20 Jun 2024 14:01:29 +0530 Subject: [PATCH] minor changes --- backend/{src => }/app.js | 6 +++--- backend/{src => }/constants.js | 0 backend/{src => }/index.js | 2 +- backend/{src => }/vercel.json | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename backend/{src => }/app.js (80%) rename backend/{src => }/constants.js (100%) rename backend/{src => }/index.js (88%) rename backend/{src => }/vercel.json (100%) diff --git a/backend/src/app.js b/backend/app.js similarity index 80% rename from backend/src/app.js rename to backend/app.js index d3816c3..8f31165 100644 --- a/backend/src/app.js +++ b/backend/app.js @@ -20,9 +20,9 @@ app.use(express.static("public")) app.use(cookieParser()) // routes import -import userRouter from './routes/user.routes.js' -import listRouter from './routes/list.routes.js' -import taskRouter from './routes/task.routes.js' +import userRouter from './src/routes/user.routes.js' +import listRouter from './src/routes/list.routes.js' +import taskRouter from './src/routes/task.routes.js' app.get('/',(req,res)=>{ res.json('hello') diff --git a/backend/src/constants.js b/backend/constants.js similarity index 100% rename from backend/src/constants.js rename to backend/constants.js diff --git a/backend/src/index.js b/backend/index.js similarity index 88% rename from backend/src/index.js rename to backend/index.js index 9c8efe9..907170e 100644 --- a/backend/src/index.js +++ b/backend/index.js @@ -1,5 +1,5 @@ import dotenv from "dotenv" -import connectDb from "./db/index.js"; +import connectDb from "./src/db/index.js"; import {app} from './app.js'; dotenv.config({ diff --git a/backend/src/vercel.json b/backend/vercel.json similarity index 100% rename from backend/src/vercel.json rename to backend/vercel.json