Skip to main content
Module

x/fastro/examples/html_response.ts

Fast and simple web application framework for deno
Go to Latest
File
import application from "../server/mod.ts"
const app = application()
app.get("/", () => { return new Response("<html> Hello world </html>", { status: 200, headers: { "content-type": "text/html", }, })})
console.log("Listening on: http://localhost:8000")
await app.serve()