我是Node.js和Express的新手, 我一直在研究一個RESTful API項目,並試圖發送一個帶有多個參數的GET請求:使用Express的多個GET參數
這裏是我的路線:
/centers/:longitude/:latitude
,這裏是我如何試圖調用它:
/centers?logitude=23.08&latitude=12.12
,我也試過
/centers/23.08/12.12
它結束了去這條路線:
/centers/
所以是我寫的端點錯誤的方式?或者我要求的方式?
發表你的代碼,說明你是如何打電話以及如何接收的。 –
[Node.js:Express app.get可能有多個查詢參數](http://stackoverflow.com/questions/19020012/node-js-express-app-get-with-multiple-query-parameters) – WitVault