|
ARouter
0.1.0
Annotation based router for your projects
|
Controller annotation used to say that class with this annotation is a Controller. Classes marked with this annotation will be scanned for Route annotations.
Route annotation is used for mapping web requests onto specific controller methods.
Here is an example of simple controller with mapping of 'contacts()' method to path '/contacts':
If you do not specify "method" then GET will be used by default.
If annotation contains placeholders in "path" like
then arguments named as those placeholders will be resolved to placeholder values.