Created
October 25, 2022 16:18
-
-
Save gofenix/30cf014ec56a61f03588ef06026b60fd to your computer and use it in GitHub Desktop.
this is a sum with delay 2s.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axiod from "https://deno.land/x/axiod/mod.ts"; | |
export async function handler(a: int, b: int) { | |
const { data } = await axiod<{ delay: string }>( | |
"https://postman-echo.com/delay/2" | |
); | |
console.log(data); | |
return a+b; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment