From a19912993d288724b70362106d92f2052d354c01 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Thu, 9 Feb 2023 09:04:27 -0600 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8redirect=20install=20route=20to=20spec?= =?UTF-8?q?ific=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/routes/pls.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/routes/pls.tsx b/www/routes/pls.tsx index fc418e8..a667df1 100644 --- a/www/routes/pls.tsx +++ b/www/routes/pls.tsx @@ -1,8 +1,10 @@ import type { Handlers } from "$fresh/server.ts"; +import VERSION from "../../version.json" assert { type: "json" }; + export const handler: Handlers = { GET() { - const path = `https://deno.land/x/platformscript/cli/pls.ts`; + const path = `https://deno.land/x/platformscript@${VERSION}/cli/pls.ts`; return new Response(`Redirecting to ${path}`, { headers: { "Location": path }, status: 307,