Improve CITES+ API call by using simpler version endpoint.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: e931b5ab-041b-42e7-baf1-50017869cef6
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/e19c6a51-7e4c-4bb8-a6a6-46dc00f0ec99/ffad2270-7783-436e-8743-22cf48d6f9dc.jpg
This commit is contained in:
Magnus-SmariSma
2025-03-20 22:43:55 +00:00
parent d64e87f189
commit cc12b7cfc7

View File

@ -275,7 +275,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
}); });
} }
// Use the version endpoint which is the simplest endpoint // Use the version endpoint which is the simplest endpoint and doesn't rely on long URLs
try { try {
const response = await axios.get(`${IUCN_BASE_URL}/version`, { const response = await axios.get(`${IUCN_BASE_URL}/version`, {
params: { token: apiKey } params: { token: apiKey }