Node.js : Express-app.Holen Sie sich mit mehreren query-Parametern

Ich möchte Abfrage, die yelp api, und haben die folgende route:

app.get("/yelp/term/:term/location/:location", yelp.listPlaces)

Wenn ich eine GET-Anforderung an

http://localhost:3000/yelp?term=food&location=austin,

Bekomme ich die Fehlermeldung

Cannot GET /yelp?term=food&location=austin

Was mache ich falsch?

InformationsquelleAutor tldr | 2013-09-26
Schreibe einen Kommentar