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
import { fetch } from "https://esm.town/v/std/fetch";
export const file = async (req: Request): Promise<Response> =>
new Response((await fetch("file:" + new URL(req.url).pathname)).body, {
headers: { "Content-Type": "text/plain" },
});
easrng-file.web.val.run
October 23, 2023