mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 11:09:18 +02:00
22 lines
831 B
PHP
22 lines
831 B
PHP
<?php
|
|
require_once __DIR__ . '/../bootstrap.php';
|
|
require_once APP_ROOT . '/src/Controllers/SearchController.php';
|
|
|
|
// Build controller (performs rate-limit check; exits with HTTP 429 if exceeded)
|
|
$ctrl = SearchController::create();
|
|
|
|
// Collect all view variables for the répertoire index page
|
|
extract($ctrl->handleRepertoire());
|
|
?>
|
|
<?php include APP_ROOT . '/templates/head.php'; ?>
|
|
<?php include APP_ROOT . '/templates/header.php'; ?>
|
|
|
|
<main class="search-main" id="main-content">
|
|
<h1 class="sr-only">Répertoire</h1>
|
|
<span id="rep-indicator" class="rep-indicator htmx-indicator" aria-hidden="true"></span>
|
|
<?php include APP_ROOT . '/templates/partials/repertoire-index.php'; ?>
|
|
</main>
|
|
<script src="/assets/js/htmx.min.js"></script>
|
|
|
|
<?php include APP_ROOT . '/templates/footer.php'; ?>
|