updated port

master
parent e13d022e26
commit 39a2a96558

1
.gitignore vendored

@ -0,0 +1 @@
node_modules

@ -5,7 +5,7 @@ const userRoutes = require("./routes/userRoutes.js");
const productRoutes = require("./routes/productRoutes.js"); const productRoutes = require("./routes/productRoutes.js");
const cors = require("cors"); const cors = require("cors");
const port = 2024; const port = 4002;
const app = express(); const app = express();
@ -24,8 +24,8 @@ connect.once("open", () => {
app.use(express.json()); app.use(express.json());
app.use(express.urlencoded({extended : true})); app.use(express.urlencoded({extended : true}));
app.use(cors()); app.use(cors());
app.use("/users", userRoutes); app.use("/b2/users", userRoutes);
app.use("/products", productRoutes); app.use("/b2/products", productRoutes);

Loading…
Cancel
Save