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
import { likes } from "https://esm.town/v/neverstew/likes";
const res = await likes({
token: Deno.env.get("valtown"),
limit: 10,
offset: 0,
});
console.log(res);
export const handler = async () => {
return new Response(JSON.stringify(res), {
headers: {
"content-type": "application/json",
},
});
};
stevekrouse-olivecatshark.web.val.run
June 1, 2024