168 );
169 }
170 return federation.fetch(req, { contextData: undefined });
171}
30
31 modifiedRequest.headers.set("Referer", `${EMBY_SERVER}/web/index.html`);
32 return fetch(modifiedRequest);
33 }
34 }
47 modifiedRequest.headers.set("Connection", request.headers.get("Connection") || "close");
48
49 return fetch(modifiedRequest);
50}
51
52addEventListener("fetch", event => {
53 event.respondWith(handleRequest(event.request));
54});
1Migrated from folder: utils/fetchXML
1export default async function sendxmpp(target: string, body: string) {
2 await fetch("https://singpolyma-sendxmppapi.web.val.run", {
3 method: "POST",
4 body: JSON.stringify({ target, body })
1/** @jsxImportSource https://esm.sh/hono@4.0.8/jsx **/
2
3import { modifyFetchHandler } from "https://esm.town/v/andreterron/codeOnValTown?v=50";
4import view_route from "https://esm.town/v/pomdtr/blob_admin_blob";
5import create_route from "https://esm.town/v/pomdtr/blob_admin_create";
137});
138
139export default modifyFetchHandler(passwordAuth(app.fetch));
60}
61async function getMeta(imdbId: string): Promise<Meta> {
62 const searchResult = await fetch(`${primewireBase}/api/v1/show?key=${primewireApiKey}&imdb_id=${imdbId}`);
63 return await searchResult.json() as Meta;
64}
29 setLoading(true);
30 try {
31 const res = await fetch("/generate", {
32 method: "POST",
33 headers: { "Content-Type": "application/json" },
4
5```js
6await fetch("https://singpolyma-sendxmppapi.web.val.run", {
7 method: "POST",
8 body: JSON.stringify({ target: "someone@example.com", body: "Hello!" })
246 e.preventDefault();
247 const finalAmount = showCustomAmount ? parseFloat(customAmount) : amount;
248 const response = await fetch("/create-checkout-session", {
249 method: "POST",
250 headers: { "Content-Type": "application/json" },
504 }
505
506 // Fetch all tips for the root endpoint
507 const allTips = await sqlite.execute(
508 `SELECT name, amount, comment, timestamp FROM ${KEY}_payments_${SCHEMA_VERSION} ORDER BY amount DESC`,
246 e.preventDefault();
247 const finalAmount = showCustomAmount ? parseFloat(customAmount) : amount;
248 const response = await fetch("/create-checkout-session", {
249 method: "POST",
250 headers: { "Content-Type": "application/json" },
504 }
505
506 // Fetch all tips for the root endpoint
507 const allTips = await sqlite.execute(
508 `SELECT name, amount, comment, timestamp FROM ${KEY}_payments_${SCHEMA_VERSION} ORDER BY amount DESC`,