From c5cc95fa3f851576e21e70d1450c8e02267d7b0c Mon Sep 17 00:00:00 2001 From: Dmitrii Derepko Date: Tue, 1 Aug 2023 22:59:05 +0300 Subject: [PATCH] Fix router --- blog-api/config/common/di/router.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blog-api/config/common/di/router.php b/blog-api/config/common/di/router.php index 23eef381..6ef13e8d 100644 --- a/blog-api/config/common/di/router.php +++ b/blog-api/config/common/di/router.php @@ -19,7 +19,7 @@ ->middleware(FormatDataResponse::class) ->middleware(ExceptionMiddleware::class) ->middleware(RequestBodyParser::class) - ->addGroup( + ->addRoute( Group::create('/{_language}') ->routes(...$config->get('routes')) );