get username api

This commit is contained in:
admin 2026-08-08 20:18:20 +12:00
parent 31b7dc5bad
commit 4a9ab9041c

4
api/get-username.php Normal file
View File

@ -0,0 +1,4 @@
<?php
header('Content-Type: application/json');
echo json_encode(['user' => $_SERVER['REMOTE_USER'] ?? 'Guest']);
?>