Files
nginx-proxy-manager/frontend/src/api/backend/getUser.ts
Jamie Curnow ebd9148813 React
2025-09-03 14:02:14 +10:00

11 lines
258 B
TypeScript

import * as api from "./base";
import type { User } from "./models";
export async function getUser(id: number | string = "me", params = {}): Promise<User> {
const userId = id ? id : "me";
return await api.get({
url: `/users/${userId}`,
params,
});
}