mirror of https://gitee.com/bigwinds/arangodb
579 B
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
});