How to parse variables in querystring using Express?

后端 未结 2 587
谎友^
谎友^ 2021-01-01 11:10

I have a request being sent to the server:

\"/stuff?a=a&b=b&c=c\"

Using express, how do I get these values?

I have tried th

2条回答
  •  感情败类
    2021-01-01 11:43

    It's not a good idea to use a query string inside a route.

    In Express logic you need create a route for "/stuff". The query string will be available in req.query.

提交回复
热议问题