Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

151
Views
why login user data is mixed with product data

I'm making a mern login + crud application

this is an example, the data in numbers 1 and 2 are examples of product data, and numbers 3 and 4 are registered user data

why is this getting mixed up, is there an error in routes?

this is my source code from index.js

require("dotenv").config();
const express = require("express");
const app = express();
const cors = require("cors");
const Database = require("./config/db");

// database connection

Database();

// middlewares
app.use(express.json());
app.use(cors());

// routes

app.use("/api/userku/users", require('./routes/users'))
app.use("/api/userku/auth", require('./routes/auth'))
app.use("/api/databengkel", require('./routes/DataRoute'))

const port = process.env.PORT || 5000;

app.listen(port, console.log(`Listening on port ${port}...`));
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!