Return whether URL is pretty

This commit is contained in:
grandeljay 2022-05-28 18:03:20 +02:00
parent 9357e66ba4
commit aad8c7cd14

View file

@ -21,7 +21,8 @@ switch ($_SERVER['REQUEST_METHOD']) {
$url = new URL(base64_decode($_GET['url'])); $url = new URL(base64_decode($_GET['url']));
$response['data'] = array( $response['data'] = array(
'url' => $url->getPretty() 'url' => $url->getPretty(),
'isPretty' => $url->isPretty(),
); );
} }
break; break;