/** @jsx h */ import { h, json, jsx, serve } from "https://deno.land/x/sift@0.4.0/mod.ts"; const App = () => ( <div> <h1>Hello world!</h1> </div> ); const NotFound = () => ( <div> <h1>Page not found</h1> </div> ); serve({ "/": () => jsx(<App />), "/api": () => json({ message: "Hello world" }), 404: () => jsx(<NotFound />, { status: 404 }), });