6 lines
226 B
TypeScript
6 lines
226 B
TypeScript
import type { UserResponse } from "~/types/interfaces"
|
|
|
|
export default async (serverId: string, userId: string): Promise<UserResponse> => {
|
|
const user = await fetchWithApi(`/users/${userId}`) as UserResponse;
|
|
return user;
|
|
}
|