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) {
1export function myApi(name) {
2 return "hi " + name;
3}
1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
4import { email } from "https://esm.town/v/ianvph/email";
5import { phProjectAPIKey } from "https://esm.town/v/ianvph/phProjectAPIKey";
6import { newestStatusGuid } from "https://esm.town/v/ianvph/newestStatusGuid";
7import { parseXML } from "https://esm.town/v/stevekrouse/parseXML?v=1";
26 };
27 const captureData = {
28 key: phProjectAPIKey,
29 event: "posthog status update",
30 properties: properties,
31 distinct_id: email,
32 };
33 postHogAPICapture(captureData);
34 await set("newestStatusGuid", newestEntry.guid);
35 return "posthog status update captured";
1export function myApi(name) {
2 return "hi " + name;
3}
1import { curveMinusOpenAPI } from "https://esm.town/v/ralfw/curveMinusOpenAPI";
2import { curveMinusManifest } from "https://esm.town/v/ralfw/curveMinusManifest";
3import { curveMinus } from "https://esm.town/v/ralfw/curveMinus";
12 });
13 app.get("/ai-plugin.json", (c) => c.text(curveMinusManifest));
14 app.get("/openapi.yaml", (c) => c.text(curveMinusOpenAPI));
15 return app.fetch(req);
16};
1export function myApi(name) {
2 return "hi " + name;
3}
1export function myApi(name) {
2 return "hi " + name;
3}
3export function discordMessages({ botToken, channelId }) {
4 return fetchJSON(
5 `https://discord.com/api/channels/${channelId}/messages`,
6 {
7 headers: {