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

163
Vistas
How to disable or update a specific website in node.js

I'm trying to get a submit post from a client page and it sends some information back from the server. I have done it so far by getting the post and then creating a new page with json code while the web server is running. The problem was that I could not update this JSON code or rather the web page while the server is running.
Is there any way I can update or delete the page while running so I can upload the new data?

app.post('/Send', function(req, res){
  console.log(req.body.signed);
  const x = req.body.signed;
  try {
  app.get("/test2/", function(req,res) {
    res.json({ "variable": x});
  });
  } catch(err) {console.log(err)}
});

(I'm trying to send some content to the html client that I can always update without using a database, so a post can be sent to another html page that can be constantly updated without reloading the page)

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