Merge branch 'main' of https://git.patalcala.com/PatAlcala9/ocbo-esign
This commit is contained in:
commit
9d243249de
1 changed files with 5 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
import { ofetch } from 'ofetch'
|
import { ofetch } from 'ofetch'
|
||||||
|
|
||||||
const VOID = "https://gateway.davaocity.gov.ph/api/pops/voidOP.ashx?oprefid="
|
// const VOID = "https://gateway.davaocity.gov.ph/api/pops/voidOP.ashx?oprefid="
|
||||||
|
const API = import.meta.env.VITE_BACKEND
|
||||||
|
|
||||||
export default async (application: string) => {
|
export default async (application: string) => {
|
||||||
try {
|
try {
|
||||||
const fetch = await ofetch(VOID + application, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
// const fetch = await ofetch(VOID + application, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
||||||
|
|
||||||
|
const fetch = await ofetch(API + `pops/voidOP/${application}/void-pops`, { parseResponse: JSON.parse, retry: 3, retryDelay: 500, retryStatusCodes: [400, 404, 405, 500, 502] })
|
||||||
const result = fetch
|
const result = fetch
|
||||||
return result
|
return result
|
||||||
} catch {
|
} catch {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue