Skip to main content
Module

x/fastro/examples/params_query.ts

Full Stack Framework for Deno, TypeScript, Preact JS and Tailwind CSS
Go to Latest
File
import fastro, { HttpRequest } from "$fastro/mod.ts";
const f = new fastro();
f.get("/:user", (req: HttpRequest) => { const data = { user: req.params?.user, name: req.query?.title }; return Response.json(data);});
await f.serve();