#Multiple API calls in Deno Fresh

14 messages · Page 1 of 1 (latest)

orchid glade
#

Does anyone know or have examples using multiple api calls on one page?
The docs on fetching data show making one call and when I try to make more than one call in a page Handler is says "Duplicate key 'GET'".

tight flower
#

sounds like you are definiting multiple get handlers?

orchid glade
tight flower
#

can you show?

orchid glade
tight flower
#

and that doesnt work?

orchid glade
tight flower
#

but from that error you are defining multiple GET handlers

orchid glade
tight flower
#

yea you are defining multiple GET handlers

orchid glade
tight flower
#

yes

orchid glade
# tight flower yes

Ok, Thank you! One last thing, how do you return multiple values from a GET hanlder?

tight flower
#

just return an object or array containing your data