Renamed voidApi to voidPopsApi

This commit is contained in:
Patrick Alvin Alcala 2025-11-27 16:10:13 +08:00
parent be452c5cd0
commit b908e5a99e

View file

@ -0,0 +1,13 @@
import { ofetch } from 'ofetch'
const VOID = "https://gateway.davaocity.gov.ph/api/pops/voidOP.ashx?oprefid="
export default async (application: string) => {
try {
const fetch = await ofetch(VOID + application, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
const result = fetch
return result
} catch {
return null
}
}