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:
@ -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 {
|
||||
const response = await axios.get(`${IUCN_BASE_URL}/version`, {
|
||||
params: { token: apiKey }
|
||||
|
Reference in New Issue
Block a user