Created
April 13, 2021 05:58
-
-
Save kt3k/7a383a879847cea42e966d6b1d3ac0f0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { serve } from "https://deno.land/x/[email protected]/mod.ts"; | |
serve({ | |
"/": () => new Response("lib.deno.d.ts"), | |
"/builtin/:version": (_request, params) => { | |
return new Response(fetch(`https://github.com/denoland/deno/releases/download/${params.version}/lib.deno.d.ts`)); | |
}, | |
404: () => new Response("not found"), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment