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
export async function handle() {
// Schedule work to do later
new Promise<void>(async (resolve) => {
// Wait 1 second
await new Promise(resolve => setTimeout(resolve, 1000));
// Log a message
console.log("Hi!");
resolve();
});
return Response.json({ ok: true });
}
tmcw-untitled_beigecrab.web.val.run
January 31, 2024