Configuration: routing.yml - reactor-X/kyrin-express GitHub Wiki

Application routes can be set up here. These are automatically set up during server startup.

Structure

The file contains route name with two properties

  • entry-point : Relative URL entry point to controller
  • controller : Controller module (relative to src/controllers directory)

For duplicated URLs (two controllers under same entry point), first definition present in the configuration is loaded.

routing.yml

home:
    entry-point: /
    controller: home/index