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

308
Views
Importar rutas desde route.js está bloqueando mi servidor nodemon

al importar rutas desde el bloqueo de nodemon de rutas.js, ¿hay alguna nueva actualización con respecto a la importación de rutas desde rutas.js?

Código index.js

 import express from "express"; //components import Connection from "./database/db.js"; import Routes from "./routes/Route.js"; const app = express(); app.use("/", Routes); const PORT = 8000; Connection(); app.listen(PORT, () => console.log(`Server is running successfully on PORT ${PORT}`) );

Código de rutas.js

 import express from "express"; import { newConversation, getConversation, } from "../controller/conversation-controller.js"; import { addUser, getUser } from "../controller/user-controller.js"; import { newMessage, getMessage } from "../controller/message-controller.js"; const route = express.Router(); route.post("/add", addUser); route.get("/users", getUser); route.post("/conversation/add", newConversation); route.post("/conversation/get", getConversation); route.post("/message/add", newMessage); route.get("/message/get/:id", getMessage); export default route;
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!