摘要:
Route InstanceLet's rewrite our cities routes using a Route Instance.Create a newRoute Instancefor the'/cities'URL path and assign it to thecitiesRout... 阅读全文
摘要:
Response BodyWhat would the response body be set to on aDELETErequest to/cities/DoesNotExist? Here'sthe linkto thesendStatusfunction source code if yo... 阅读全文
摘要:
Parser SetupAssume thebody-parsermiddleware is installed. Now, let's use it in our Express application.npm install body-parserRequire thebody-parsernp... 阅读全文
摘要:
Flexible RoutesOur current route only works when the city name argument matches exactly the properties in thecitiesobject. This is a problem. We need ... 阅读全文
摘要:
City SearchWe want to create an endpoint that we can use to filter cities. Follow the tasks below to to create this new route.Create a new route forGE... 阅读全文
摘要:
Logging MiddlewareHelp finish the following middleware code in thelogger.jsfile:On theresponseobject, listen to the event that's emitted when the resp... 阅读全文
摘要:
Mounting MiddlewareGiven an application instance is set to theappvariable, which of the following function calls would you use to mount a middleware c... 阅读全文