upd: profile dan katalog

Deskripsi:
- mecah dan ganti ke api

No Issues
This commit is contained in:
amel
2024-12-05 17:21:59 +08:00
parent 2fa96d47ba
commit 66c65bc937
14 changed files with 444 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
export const apiGetUserLogin = async () => {
const response = await fetch(`/api/new/user`)
export const apiGetUserProfile = async (path?: string) => {
const response = await fetch(`/api/new/user${(path) ? path : ''}`)
return await response.json().catch(() => null)
}

View File

@@ -1,4 +1,4 @@
export interface IUserLogin {
export interface IUserProfile {
id: string
username: string
nomor: string