Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/fastro/examples/params_query.ts

The Web Framework for Full Stack Apps
Go to Latest
File
import fastro, { HttpRequest } from "../mod.ts";
const f = new fastro();
f.get("/:user", (req: HttpRequest) => { const data = { user: req.params?.user, name: req.query?.name }; return Response.json(data);});
await f.serve();