Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

deno router

// server.ts
import * as Denoot from "https://deno.land/x/denoot/mod.ts";

const app = Denoot.app(3000);

app.get("/", (req: Denoot.Request, res: Denoot.Response) => {
    res.send("Hello World!");
});

// then run "deno run --allow-net --unstable server.ts"
// read more: https://deno.land/x/denoot
 
PREVIOUS NEXT
Tagged: #deno #router
ADD COMMENT
Topic
Name
3+1 =