upd: investasi
Deskripsi: - api pada bursa investasi No Issues
This commit is contained in:
@@ -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)
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user