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>
17 lines
490 B
PHP
17 lines
490 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
require_once __DIR__ . '/../../lib/bootstrap.php';
|
|
|
|
v2_validate_method('GET');
|
|
$auth = v2_auth_require('student');
|
|
$studentId = (int) ($auth['sub'] ?? 0);
|
|
|
|
$data = mock_student($studentId);
|
|
if (!$data) {
|
|
v2_response_error(404, 'mock_unknown_student',
|
|
"Mock kennt nur Test-Schüler 42 (Lena), 43 (Yusuf, Easy-Sprache), 44 (Sofia, A11y). Du hast: $studentId");
|
|
}
|
|
|
|
mock_log('GET /api/student/me', ['studentId' => $studentId]);
|
|
v2_response_ok($data);
|