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

307 B

Controller.allRoutes.onlyIfAuthenticated(code, description)

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

Examples

app.allRoutes.onlyIfAuthenticated(401, "You need to be authenticated");

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