Codestrips

Hi i just had a quick question about the Codestrips project. I wanted to know why were using “strips” instead of “Strip” like the actual title for the table in the database.

 app.get('/strips', (req, res, next) =>{
  db.all('SELECT * FROM Strip', (err, rows) =>{
    res.send({ strips: rows});
  })
})

I figued out why my rows wouldn’t display because I had a “Strips” instead of “strips”. I just want to know where this key is coming from. Is it because we made our path “strips”

1 Like

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.