Public
HTTP (deprecated)
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
// export let comments = ["hello world!"];
// export let twitterJSON = ({ url, bearerToken }) =>
// fetchJSON(
// "https://felt.com/api/v1/maps/SssjclTrScGmH4TfPHzNjD/elements",
// { headers: { authorization: `Bearer ${"felt_pat_ZAqb6bBSE2Na1wDVtZQE17p/sK/+odCnpa1CqLMkcXA"}` } },
// );
// export function handler(request: Request) {
// let elements = fetchJSON(
// "https://felt.com/api/v1/maps/SssjclTrScGmH4TfPHzNjD/elements",
// { headers: { authorization: `Bearer ${"felt_pat_ZAqb6bBSE2Na1wDVtZQE17p/sK/+odCnpa1CqLMkcXA"}` } },
// );
// console.log(elements);
// return Response.json({});
// }
export default async function(req: Request): Promise<Response> {
return fetch(
"https://felt.com/api/v1/maps/SssjclTrScGmH4TfPHzNjD/elements",
// headers: { authorization: `Bearer ${"felt_pat_ZAqb6bBSE2Na1wDVtZQE17p/sK/+odCnpa1CqLMkcXA"}` }
);
}
samhashemi-testing.web.val.run
April 29, 2024