fix :home
Deskripsi: - home pake api No Issues
This commit is contained in:
4
src/app_modules/home/fun/get/api_home.ts
Normal file
4
src/app_modules/home/fun/get/api_home.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
export const apiGetDataHome = async (path?: string) => {
|
||||
const response = await fetch(`/api/new/home${(path) ? path : ''}`)
|
||||
return await response.json().catch(() => null)
|
||||
}
|
||||
Reference in New Issue
Block a user