mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-28 03:30:05 +00:00
13 lines
285 B
TypeScript
13 lines
285 B
TypeScript
import * as api from "./base";
|
|
import { UserResponse } from "./responseTypes";
|
|
|
|
export async function getUser(
|
|
id: number | string = "me",
|
|
): Promise<UserResponse> {
|
|
const userId = id ? id : "me";
|
|
const { result } = await api.get({
|
|
url: `/users/${userId}`,
|
|
});
|
|
return result;
|
|
}
|