Added shlink integration

This commit is contained in:
Karthik Kasturi 2025-08-15 00:07:51 +01:00
parent ebe275d509
commit 0808052acf
10 changed files with 215 additions and 2 deletions

View file

@ -124,6 +124,7 @@ class Request
'link' => FILTER_SANITIZE_URL,
'pasteid' => FILTER_SANITIZE_SPECIAL_CHARS,
'shortenviayourls' => FILTER_SANITIZE_SPECIAL_CHARS,
'shortenviashlink' => FILTER_SANITIZE_SPECIAL_CHARS,
), false);
}
if (
@ -149,6 +150,9 @@ class Request
if (str_contains($this->getRequestUri(), '/shortenviayourls') || array_key_exists('shortenviayourls', $this->_params)) {
$this->_operation = 'yourlsproxy';
}
if (str_contains($this->getRequestUri(), '/shortenviashlink') || array_key_exists('shortenviashlink', $this->_params)) {
$this->_operation = 'shlinkproxy';
}
}
}