chore(query.php): rename proxy endpoint to query to better reflect how it's used
This commit is contained in:
parent
92a3730e61
commit
697cff4b2f
4 changed files with 20 additions and 22 deletions
|
@ -56,9 +56,7 @@ class ProxyHandler extends BaseHandler
|
|||
try {
|
||||
$response = $this->fetchFromApi($data, $query);
|
||||
$markdownFields = $_GET['markdown'] ?? [];
|
||||
$markdownFields = is_array($markdownFields)
|
||||
? $markdownFields
|
||||
: explode(',', $markdownFields);
|
||||
$markdownFields = is_array($markdownFields) ? $markdownFields : explode(',', $markdownFields);
|
||||
$markdownFields = array_map('trim', array_filter($markdownFields));
|
||||
|
||||
if (!empty($response) && !empty($markdownFields)) {
|
Loading…
Add table
Add a link
Reference in a new issue