Clean up API routes

This commit is contained in:
James Cole
2024-10-20 17:55:06 +02:00
parent 6ff84b8e90
commit acadc89eaa
5 changed files with 69 additions and 94 deletions

View File

@@ -49,7 +49,7 @@ class AutocompleteRequest extends FormRequest
public function getParameters(): array
{
$array = [
'date' => $this->date('date'),
'date' => $this->convertDateTime('date'),
'query' => $this->clearString((string) $this->get('query')),
'size' => $this->integerFromValue('size'),
'page' => $this->integerFromValue('page'),