React/Vite Frontend (hifi-src) + PHP/MariaDB Backend (hifi/api) fuer den Car-Hifi Umbau-Shop HifiPlanet in Amorbach, inkl. Admin-Panel, 2FA, Wartungsmodus, Cookie-Consent und rechtlichen Pflichtseiten. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
18 lines
361 B
PHP
18 lines
361 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Support\Http;
|
|
use App\Support\Permissions;
|
|
|
|
class PermissionCatalogController
|
|
{
|
|
public static function index(): void
|
|
{
|
|
$catalog = [];
|
|
foreach (Permissions::CATALOG as $key => $label) {
|
|
$catalog[] = ['key' => $key, 'label' => $label];
|
|
}
|
|
Http::send($catalog);
|
|
}
|
|
}
|