Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda