upd: investasi

Deskripsi:
- api pada bursa investasi

No Issues
This commit is contained in:
amel
2024-12-16 15:16:55 +08:00
parent df6dcd6eb3
commit 63d6d48f63
8 changed files with 368 additions and 4 deletions

View File

@@ -6,4 +6,9 @@ export const apiGetMasterInvestasi = async (path?: string) => {
export const apiGetOneInvestasiById = async (path: string) => {
const response = await fetch(`/api/new/investasi/${path}`)
return await response.json().catch(() => null)
}
export const apiGetAllInvestasi = async (path?: string) => {
const response = await fetch(`/api/new/investasi${(path) ? path : ''}`)
return await response.json().catch(() => null)
}

View File

@@ -12,4 +12,13 @@ export interface IDataInvestasi {
masterPencarianInvestorId: string
masterPeriodeDevidenId: string
masterPembagianDevidenId: string
}
export interface IDataInvestasiBursa {
id: string
title: string
imageId: string
progress: string
countDown: string
pencarianInvestor: string
}