Skip to content

Commit

Permalink
✨redirect install route to specific version
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboyd committed Feb 9, 2023
1 parent 57aa7bd commit a199129
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/routes/pls.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit a199129

Please sign in to comment.