fix :home

Deskripsi:
- home pake api

No Issues
This commit is contained in:
amel
2024-12-05 15:12:18 +08:00
parent ac3c1569d0
commit 2fa96d47ba
13 changed files with 667 additions and 10 deletions

View File

@@ -0,0 +1,5 @@
import { IUserLogin } from './lib/type_user';
import { apiGetUserLogin } from "./lib/api_user";
export { apiGetUserLogin };
export type { IUserLogin };

View File

@@ -0,0 +1,4 @@
export const apiGetUserLogin = async () => {
const response = await fetch(`/api/new/user`)
return await response.json().catch(() => null)
}

View File

@@ -0,0 +1,14 @@
export interface IUserLogin {
id: string
username: string
nomor: string
active:boolean
masterUserRoleId: string
idProfile: string
name: string
email: string
alamat: string
jenisKelamin: string
imageId: string
imageBackgroundId: string
}