Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

79
Views
I am not getting the output id is simply loading in the server

i am trying to use the the express routing function but not getting the output when i go to the server it just keeps on loading

app.get("/posts/:postname", (req, res) => {
  let requrl = req.params.postname;
  posts.forEach(function (post) {
    let storedtitle = post.title
    if (storedtitle === requrl) {
      app.render("post", {
        title: post.title,
        content: post.content
      })
    }
  });
})
7 months ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.