diff --git a/plugins/webservices/config/src/Extension/Config.php b/plugins/webservices/config/src/Extension/Config.php index 2a8ff030b7abf..a0087f9dacd05 100644 --- a/plugins/webservices/config/src/Extension/Config.php +++ b/plugins/webservices/config/src/Extension/Config.php @@ -59,8 +59,8 @@ public function onBeforeApiRoute(BeforeApiRouteEvent $event): void $routes = [ new Route(['GET'], 'v1/config/application', 'application.displayList', [], $getDefaults), new Route(['PATCH'], 'v1/config/application', 'application.edit', [], $defaults), - new Route(['GET'], 'v1/config/:component_name', 'component.displayList', ['component_name' => '([A-Za-z_]+)'], $getDefaults), - new Route(['PATCH'], 'v1/config/:component_name', 'component.edit', ['component_name' => '([A-Za-z_]+)'], $defaults), + new Route(['GET'], 'v1/config/:component_name', 'component.displayList', ['component_name' => '([A-Za-z0-9_]+)'], $getDefaults), + new Route(['PATCH'], 'v1/config/:component_name', 'component.edit', ['component_name' => '([A-Za-z0-9_]+)'], $defaults), ]; $router->addRoutes($routes);