mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-10-04 20:00:12 +00:00
React
This commit is contained in:
10
frontend/src/api/backend/getUser.ts
Normal file
10
frontend/src/api/backend/getUser.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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,
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user