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(); }
public function loadRoutes(RouteBuilder $builder) { $builder->route('url_test', '/urltest/{_locale}', [TwigController::class, 'urlTest']); }
public function loadRoutes(RouteBuilder $builder) { $builder->route('home', '/{_locale}', [AcmeController::class, 'index']); }