How to call external API from own API #1681
Answered
by
daniloab
thesheppard
asked this question in
Q&A
-
I have an issue where I want to call an external API to verify a certain token coming from my frontend. i.e router.post('/api/verifyToken', async (ctx, next) => {
router.post('https://external-site.com/verify')
}) How would I go about doing this with koa? |
Beta Was this translation helpful? Give feedback.
Answered by
daniloab
Jul 28, 2022
Replies: 1 comment
-
Fetch the api and do the next step accordingly with the return of it |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jonathanong
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fetch the api and do the next step accordingly with the return of it