Skip to content

Instantly share code, notes, and snippets.

@gofenix
Last active October 23, 2022 02:39
Show Gist options
  • Save gofenix/51ceeefe042a23dc6c0f218ec415ff16 to your computer and use it in GitHub Desktop.
Save gofenix/51ceeefe042a23dc6c0f218ec415ff16 to your computer and use it in GitHub Desktop.
MicroFaaS
export function handler() {
console.log(Deno)
}
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;
}
import axiod from "https://deno.land/x/axiod/mod.ts";
export function handler(a: int, b: int) {
return a+b;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment