1
0
Fork 0
arangodb/Documentation/DocuBlocks/foxx_controller_initializer.md

405 B

new Controller(applicationContext, options)

This creates a new Controller. The first argument is the controller context available in the variable applicationContext. The second one is an options array with the following attributes:

  • urlPrefix: All routes you define within will be prefixed with it.

@EXAMPLES

app = new Controller(applicationContext, {
  urlPrefix: "/meadow"
});