mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: add course author to course page
This commit is contained in:
parent
3cfa49cccd
commit
18f54ce7b1
2 changed files with 45 additions and 9 deletions
8
front/services/users/users.ts
Normal file
8
front/services/users/users.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue