From 88114ae9f2750f2792ebe602199c91ec92422347 Mon Sep 17 00:00:00 2001 From: stasbilay02 Date: Thu, 9 Jan 2025 14:51:15 +0300 Subject: [PATCH] fix profile edit route --- kernel/modules/user/routs/user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/modules/user/routs/user.php b/kernel/modules/user/routs/user.php index 25eda62..d5dc543 100644 --- a/kernel/modules/user/routs/user.php +++ b/kernel/modules/user/routs/user.php @@ -20,7 +20,7 @@ App::$collector->group(["prefix" => "admin"], function (RouteCollector $router){ App::$collector->group(["prefix" => "profile"], callback: function (RouteCollector $router) { App::$collector->get('/', [\kernel\modules\user\controllers\UserController::class, 'actionProfile']); App::$collector->get('/update', [\kernel\modules\user\controllers\UserController::class, 'actionProfileUpdate']); - App::$collector->post('/edit', [\kernel\modules\user\controllers\UserController::class, 'actionProfileEdit']); + App::$collector->any('/edit', [\kernel\modules\user\controllers\UserController::class, 'actionProfileEdit']); }); }); });