initial commit

This commit is contained in:
2026-03-30 11:51:52 +02:00
commit 7ff76896e6
22 changed files with 1126 additions and 0 deletions

11
auth/whoami.php Normal file
View File

@@ -0,0 +1,11 @@
<?php
header('Content-Type: application/json; charset=utf-8');
$user = $_SERVER['REMOTE_USER'] ?? null;
if (!$user) {
http_response_code(401);
echo json_encode(['error'=>'no-user']);
exit;
}
echo json_encode(['user' => $user]);