fix :home
Deskripsi: - home pake api No Issues
This commit is contained in:
5
src/app_modules/user/index.ts
Normal file
5
src/app_modules/user/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { IUserLogin } from './lib/type_user';
|
||||
import { apiGetUserLogin } from "./lib/api_user";
|
||||
|
||||
export { apiGetUserLogin };
|
||||
export type { IUserLogin };
|
||||
4
src/app_modules/user/lib/api_user.ts
Normal file
4
src/app_modules/user/lib/api_user.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const apiGetUserLogin = async () => {
|
||||
const response = await fetch(`/api/new/user`)
|
||||
return await response.json().catch(() => null)
|
||||
}
|
||||
14
src/app_modules/user/lib/type_user.ts
Normal file
14
src/app_modules/user/lib/type_user.ts
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user