fix: bunnycdn logo and api key security

This commit is contained in:
Usman Baig
2026-03-14 21:08:42 +01:00
parent fb85c431f0
commit 2512be0d57
3 changed files with 9 additions and 5 deletions

View File

@@ -52,7 +52,8 @@ export interface BunnyGeoRow {
export async function getBunnyPullZones(siteId: string, apiKey: string): Promise<{ pull_zones: BunnyPullZone[], message?: string }> {
return apiRequest<{ pull_zones: BunnyPullZone[], message?: string }>(
`/sites/${siteId}/integrations/bunny/pull-zones?api_key=${encodeURIComponent(apiKey)}`
`/sites/${siteId}/integrations/bunny/pull-zones`,
{ method: 'POST', body: JSON.stringify({ api_key: apiKey }) }
)
}