how to get the query string - hogehoge666/syno_moments_slider GitHub Wiki

  • Assume your API looks like this, and you want to get the query string value.
http://some.url.com/api/user?id=<id>
  • Use request.query.
app.get('/api/user', (request, response) => {
    const userId = request.query.id;