www: redirect init script to deno.land/x/fresh

This commit is contained in:
Luca Casonato
2022-06-22 12:14:23 +02:00
parent 1b9816bda0
commit b1d4eb3da0
+1 -1
View File
@@ -15,7 +15,7 @@ export const handler: Handlers = {
GET(req, ctx) {
const accept = req.headers.get("accept");
if (accept && !accept.includes("text/html")) {
const path = `/@${VERSIONS[0]}/init.ts`;
const path = `https://deno.land/x/fresh@${VERSIONS[0]}/init.ts`;
return new Response(`Redirecting to ${path}`, {
headers: { "Location": path },
status: 307,