feat(*): refactor metadata handling; move metadata to backend where possible, refine client views

This commit is contained in:
Cory Dransfeldt 2025-05-25 20:15:45 -07:00
parent 929bc9f9f8
commit 9687509e4a
No known key found for this signature in database
35 changed files with 506 additions and 339 deletions

View file

@ -1,13 +1,13 @@
<?php
namespace App\Classes;
namespace App\Classes;
require __DIR__ . "/BaseHandler.php";
require __DIR__ . "/BaseHandler.php";
abstract class ApiHandler extends BaseHandler
{
protected function ensureCliAccess(): void
abstract class ApiHandler extends BaseHandler
{
if (php_sapi_name() !== 'cli' && $_SERVER['REQUEST_METHOD'] !== 'POST') $this->sendErrorResponse("Not Found", 404);
protected function ensureCliAccess(): void
{
if (php_sapi_name() !== 'cli' && $_SERVER['REQUEST_METHOD'] !== 'POST') $this->sendErrorResponse("Not Found", 404);
}
}
}