Update CITES API endpoint to v4.

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/fa1aba3c-e569-4d27-b2a8-fcfe8a39ff93.jpg
This commit is contained in:
Magnus-SmariSma
2025-03-20 23:33:16 +00:00
parent c394494387
commit dbb21056c5

View File

@ -323,7 +323,7 @@ export async function registerRoutes(app: Express): Promise<Server> {
try {
// Check if the API is working by hitting the version endpoint
const response = await axios.get("https://apiv3.iucnredlist.org/api/v3/version", {
const response = await axios.get("https://apiv4.iucnredlist.org/api/v4/information/api_version", {
headers: {
"Authorization": `Bearer ${iucnToken}`
}