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

160
Views
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
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!