From aa459747ed9b1e53b10965d04227ca553f304d4b Mon Sep 17 00:00:00 2001 From: grandeljay Date: Fri, 8 Jul 2022 11:09:57 +0200 Subject: [PATCH] Refactor --- src/api/url.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/url.php b/src/api/url.php index 3938583a..50ce7856 100644 --- a/src/api/url.php +++ b/src/api/url.php @@ -21,8 +21,8 @@ switch ($_SERVER['REQUEST_METHOD']) { $url = new URL(base64_decode($_GET['url'])); $response['data'] = array( - 'url' => $url->getPretty(), - 'isPretty' => $url->isPretty(), + 'url' => $url->getPretty(), + 'wasPretty' => $url->isPretty(), ); } break;