1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name + "from" + $me;
3}
15 }
16 const githubEvents = await fetchJSON(
17 "https://api.github.com/users/daviddkkim/events",
18 ) as Data;
19 //early return if no github events
3// Public holidays in the US in 2023
4export let holidaysUS = fetchJSON(
5 "https://date.nager.at/api/v2/publicholidays/2023/US"
6);
1export function myApi(name) {
2 return "hi " + name;
3}
3export async function githubFollowers() {
4 let followers = await fetchJSON(
5 "https://api.github.com/users/stungeye/followers",
6 );
7 return followers;
2import { blocks as blocks2 } from "https://esm.town/v/rym/blocks";
3
4// Access via https://api.val.town/v1/express/rym.home
5export async function home(req: express.Request, res: express.Response) {
6 const blocks = await blocks2();
1export function myApi() {
2 return ` <!DOCTYPE html><html lang=";
3 en;
5 try {
6 const responseData = await fetch(
7 "https://hp-api.onrender.com/api/characters",
8 );
9 const data = await responseData.json();
4 try {
5 return fetchJSON(
6 `https://date.nager.at/api/v2/publicholidays/${year}/${country}`
7 );
8 } catch (err) {