1e51ef7def
- Konzept/, didaktik_geografie/, didaktik_simulation/, v2-modules/, v2-platform/ - 12 code-workspace-Files - STATUS-*.md - viele M/D/R-Änderungen an bereits getrackten Files - .gitignore verstärkt: **/.humaninput/, **/secret_keys.txt Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
19 lines
514 B
PHP
19 lines
514 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
require_once __DIR__ . '/../../lib/bootstrap.php';
|
|
|
|
v2_validate_method('GET');
|
|
v2_auth_require('any');
|
|
|
|
$code = $_GET['code'] ?? trim($_SERVER['PATH_INFO'] ?? '', '/');
|
|
if (!$code) v2_response_error(400, 'missing_code', 'Code fehlt.');
|
|
|
|
$data = mock_lehrplan($code);
|
|
if (!$data) {
|
|
v2_response_error(404, 'mock_unknown_anker',
|
|
"Mock kennt nur AT-GW-1.4.2 und AT-GW-2.1.1. Du hast: $code");
|
|
}
|
|
|
|
mock_log('GET /api/lehrplan/anker', ['code' => $code]);
|
|
v2_response_ok($data);
|