1
0
mirror of git://f0xx.org/ac/ac-ms-tickets synced 2026-07-29 02:57:34 +03:00
This commit is contained in:
Anton Afanasyeu
2026-06-23 12:29:32 +02:00
commit 040e2fa9ca
23 changed files with 1545 additions and 0 deletions

9
public/api/users.php Normal file
View File

@@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
require_once __DIR__ . '/../../src/bootstrap.php';
if (!Auth::user()) {
json_out(['ok' => false, 'error' => 'unauthorized'], 401);
}
json_out(['ok' => true, 'users' => UserRepository::listForAssignees()]);