Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
Mounting type of path so that html works

Essentially, I believe what I want is a mount path such that when the user clicks the URL

localhost:8080/items/set.html?item_type=set&id=1 fetches the resource.

Will it function if I:

app.use(express.static("client", { extensions: ["html"] }));

async function get_item(req,res) {
  const t = req.query.type;
  const id = req.query.id;

  res.json(db.db_fetch_item(t,id))
}

app.use('/items/set.html', get_item())

Will this pathing work?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda