about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pokedex.rkt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pokedex.rkt b/src/pokedex.rkt
index 02523b0..38d6ef0 100644
--- a/src/pokedex.rkt
+++ b/src/pokedex.rkt
@@ -18,12 +18,12 @@
 
 
 ;; API URL
-(define *POKE-API* "https://pokeapi.co/api/v2/pokemon/")
+(define *POKE-API* "https://pokeapi.co/api/v2/")
 
 
 (define (get-pokemon id)
     "queries the api, returns a butt ton of info"
-	(call/input-url (string->url (~a *POKE-API* id)) ; ~a, like string-append but appends *either* strings or numbers to a string
+	(call/input-url (string->url (~a *POKE-API* "pokemon/" id)) ; ~a, like string-append but appends *either* strings or numbers to a string
                 get-pure-port
                 (compose string->jsexpr port->string))) ;; QUESTION: could I use read-json here, instead?