Created
March 7, 2024 14:48
-
-
Save nekomimi-daimao/8bcdd74e3f4a86826b655ff8eb465d60 to your computer and use it in GitHub Desktop.
deno local server
This file contains 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
// deno run --allow-net --allow-read=. server.ts | |
import { serveDir } from "https://deno.land/[email protected]/http/file_server.ts"; | |
Deno.serve((req) => {return serveDir(req);}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment