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
export default function(req: Request) {
const url = new URL(req.url);
if (!url.searchParams.has("url")) {
return new Response("No URL provided", {
status: 400,
});
}
const args = encodeURIComponent(JSON.stringify({
url: url.searchParams.get("url") || "",
}));
return Response.redirect(`raycast://extensions/pomdtr/cmdk/open-page?arguments=${args}`);
}
pomdtr-deeplink.web.val.run
April 25, 2024