mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
allow querying users by id
This commit is contained in:
parent
4abec32123
commit
f4f1454d59
2 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,8 @@ class UserController extends BaseController {
|
|||
$steamId = Parser::convertSteamIdToCommunityId($steamId);
|
||||
} catch (InvalidArgumentException $e) {
|
||||
}
|
||||
} else if ($user = $this->userProvider->getById((int)$steamId)) {
|
||||
Flight::json($user);
|
||||
}
|
||||
Flight::json($this->userProvider->get($steamId));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue