Last active
September 29, 2022 15:17
-
-
Save nathanclevenger/1c0d258d6acbcfa7ed27ea12ea277626 to your computer and use it in GitHub Desktop.
Simple API
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 { api } from 'https://pkg.do/apis.do' | |
const myAPI = api(number = 5 => { number, squared: number^2, cubed: number^3 }) | |
export default myAPI |
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 { apis, json } from 'https://pkg.do/apis.do' | |
export default { | |
fetch: () => json({apis}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment