Fix duplicate route

This commit was merged in pull request #8.
This commit is contained in:
NH Gooi
2024-09-12 15:47:20 +02:00
committed by mischa.spelt
parent ba06608ee0
commit a3e8b05008
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ class HomeController extends Controller
$news = [];
foreach ($apiResult->news as $newsItem) {
$news[] = new \Model\NewsItem($newsItem);
}
}
$populair = [];
$apiResult = $this->API('nieuws/populair?pagina=' . (int)max(1, $page) . '&aantal=5');