/** * Returns the GET response * * @return array|\PSX\Record\RecordInterface */ protected function doGet() { return $this->routesService->getAll($this->getParameter('startIndex', Validate::TYPE_INTEGER) ?: 0, $this->getParameter('search', Validate::TYPE_STRING) ?: null); }