get username api
This commit is contained in:
parent
31b7dc5bad
commit
4a9ab9041c
4
api/get-username.php
Normal file
4
api/get-username.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
header('Content-Type: application/json');
|
||||
echo json_encode(['user' => $_SERVER['REMOTE_USER'] ?? 'Guest']);
|
||||
?>
|
||||
Loading…
x
Reference in New Issue
Block a user