Refactor entry API: consolidate entry handling, update naming conventions, and enhance error reporting

This commit is contained in:
marc-go committed 2026-10-11 19:19:36 +02:00
1 parent 205f2e2f73
commit ad9290d2ad
9 files changed
+72 -12

No files matched your search

+6 -2
View File
@@ -13,12 +13,16 @@ require FRONTEND_PATH . "html_loader.php";
$htmlLoader = new HTMLLoader();
// Build Entry Page
$htmlLoader->setPage("entrys_frontend");
$htmlLoader->setPage("entries_frontend");
// Get entrys
$call = new APICall("entrys/get.php");
$call = new APICall("entry/get.php");
$response = $call->response;
if ($call->getError() !== false) {
$htmlLoader->showError("Entry API Returned an error: " . $call->getError());
}
if ($response["data"]["empty"]) {
$html_block = "<p>There aren'n any entrys yet. Be the first one!</p>";
}else{