Decorators - jellyfishsolutions/lynx GitHub Wiki

Decorators

The decorator functions are used to "decorate" methods of the controller, in order to easily add functionality on them.

Route

This decorator is used on a controller class instead on a method. The decorator is necessary to instruct the framework to load the methods behind the Route entry point.

Parameters:

  • path: the route path for the controller