Establishment of reference Node js



  • How do you want Node to return the page with a reference to which one can click?

    res.send('Документ создан. Вы можете загрузить его здесь - http://localhost:1337/download');



  • Clickable reference is already HTML. I mean, you're not just gonna have to get your text line back, but something like that:

    res.send('<html><body>Документ создан. Вы можете загрузить его <a href="http://localhost:1337/download">здесь</a></body></html>');
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2