Skip to content

Instantly share code, notes, and snippets.

@gofenix
Created October 25, 2022 16:18
Show Gist options
  • Save gofenix/30cf014ec56a61f03588ef06026b60fd to your computer and use it in GitHub Desktop.
Save gofenix/30cf014ec56a61f03588ef06026b60fd to your computer and use it in GitHub Desktop.
this is a sum with delay 2s.
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