public function loadRoutes(RouteBuilder $builder)
 {
     $builder->route('no-response', '/no-response', []);
     $builder->route('ping', '/ping', [self::class, 'ping']);
     $builder->route('hello', '/hello/{fname}/{lname}', [self::class, 'hello']);
     $builder->route('api', '/api/{key}/{value}', [self::class, 'api'])->responseJSON();
 }
Esempio n. 2
0
 public function loadRoutes(RouteBuilder $builder)
 {
     $builder->route('url_test', '/urltest/{_locale}', [TwigController::class, 'urlTest']);
 }
Esempio n. 3
0
 public function loadRoutes(RouteBuilder $builder)
 {
     $builder->route('home', '/{_locale}', [AcmeController::class, 'index']);
 }