mirror of
git://f0xx.org/ac/ac-ms-tickets
synced 2026-07-29 02:57:34 +03:00
initial
This commit is contained in:
9
public/api/users.php
Normal file
9
public/api/users.php
Normal 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()]);
|
||||
Reference in New Issue
Block a user