Skip to content

Commit a67871c

Browse files
committed
updated routes and handlers
Signed-off-by: MarioRadu <[email protected]>
1 parent 2ff73a3 commit a67871c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/Admin/src/Controller/AdminController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public function loginAction(): ResponseInterface
214214
return new RedirectResponse($this->router->generateUri("dashboard"));
215215
}
216216

217-
$form = new LoginForm();
217+
$form = new LoginForm();
218218
$shouldRebind = $this->messenger->getData('shouldRebind') ?? true;
219219
if ($shouldRebind) {
220220
$this->forms->restoreState($form);

src/Admin/src/RoutesDelegator.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public function __invoke(ContainerInterface $container, string $serviceName, cal
1818

1919
$app->route(
2020
'/admin[/{action}[/{uuid}]]',
21-
AdminController::class, [RequestMethodInterface::METHOD_GET, RequestMethodInterface::METHOD_POST],
21+
AdminController::class,
22+
[RequestMethodInterface::METHOD_GET, RequestMethodInterface::METHOD_POST],
2223
'admin'
2324
);
2425

src/App/assets/js/components/_admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ $(document).ready(() => {
99
$("#adminDeleteBtn").prop('disabled', true);
1010

1111
$(document).on('click', '#adminAddBtn', () => {
12-
adminModal.find('.modal-messages').html('');
12+
adminModal.find('.modal-messages').html('');``
1313
request('GET', '/admin/add')
1414
.catch(error => console.error('Error:', error))
1515
.then(data => {

src/App/src/Common/ServerRequestAwareTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
use Exception;
88
use Fig\Http\Message\RequestMethodInterface;
9-
use Laminas\Diactoros\Response\JsonResponse;
109

1110
use function array_key_exists;
1211
use function array_map;

0 commit comments

Comments
 (0)