Last active
October 23, 2022 02:39
-
-
Save gofenix/51ceeefe042a23dc6c0f218ec415ff16 to your computer and use it in GitHub Desktop.
MicroFaaS
This file contains hidden or 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
export function handler() { | |
console.log(Deno) | |
} |
This file contains hidden or 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; | |
} |
This file contains hidden or 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 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