Skip to content

Commit

Permalink
fix api paths
Browse files Browse the repository at this point in the history
  • Loading branch information
GitPaulo committed Jan 6, 2025
1 parent cb27a62 commit d06538c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/services/xivapi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { base } from "$app/paths";

export const XIVAPI_BASE_URL = "https://xivapi.com";
export const XIVAPI_BETA_BASE_URL = "https://beta.xivapi.com/api/1";

/**
Expand All @@ -22,7 +21,7 @@ export function getImageUrl(imagePath: string | null): string {
try {
// Encode the imagePath for the new API query parameter
const encodedPath = encodeURIComponent(imagePath);
const assetPath = `${XIVAPI_BETA_BASE_URL}/api/1/asset?path=${encodedPath}&format=png`;
const assetPath = `${XIVAPI_BETA_BASE_URL}/asset?path=${encodedPath}&format=png`;

// Validate the URL
new URL(assetPath);
Expand Down

0 comments on commit d06538c

Please sign in to comment.