mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
8 lines
No EOL
339 B
TypeScript
8 lines
No EOL
339 B
TypeScript
import { getAPIUrl } from "@services/config/config";
|
|
import { RequestBody, errorHandling } from "@services/utils/ts/requests";
|
|
|
|
export async function getUser(user_id: string) {
|
|
const result = await fetch(`${getAPIUrl()}users/user_id/${user_id}`, RequestBody("GET", null, null));
|
|
const res = await errorHandling(result);
|
|
return res;
|
|
} |