1
0
Fork 0
arangodb/Documentation/DocuBlocks/JSF_foxx_RequestContextBuff...

579 B

Controller.allRoutes.queryParam(id, options)

This is equal to invoking Route.queryParam on all routes bound to this controller.

Examples

app.allroutes.queryParam("id",
  joi.string()
  .required()
  .description("Id of the Foxx")
  .meta({allowMultiple: false})
});

app.get("/foxx", function {
  // Do something
});

You can also pass in a configuration object instead:

app.allroutes.queryParam("id", {
  type: joi.string().required().description("Id of the Foxx"),
  allowMultiple: false
});

app.get("/foxx", function {
  // Do something
});