Get StartedApp StructureHello WorldHello World ContextHello JSONRoutingURL ParamsQuery ParamsApp MiddlewareRoute MiddlewareMarkdown MiddlewareTailwind MiddlewareStatic FileHello TSXTSX ComponentFunction ComponentServer Side RenderingOAuthMySQLPostgresRedisMongoDeno KVGroupingDeploymentStoreBenchmarks
URL Query
import fastro, { HttpRequest } from "https://fastro.deno.dev/mod.ts";
const f = new fastro();
f.get("/:user", (req: HttpRequest) => {
const data = { user: req.params?.user, title: req.query?.title };
return Response.json(data);
});
await f.serve();
You can access with: http://localhost:8000/agus?title=head