ci

Fastro

Fast, unopinionated, minimalist web framework for deno.

import { Fastro } from "https://deno.land/x/fastro/mod.ts";

const server = new Fastro();

server.get("/", (req) => req.send("root"));

await server.listen({ port: 8000 });

How to use

These modules are tagged in accordance with Fastro releases. So, for example, the v0.1.0 tag is guaranteed to work with fastro v0.1.0. You can link to v0.1.0 using the URL https://deno.land/x/fastro@v0.1.0/mod.ts. Not specifying a tag will link to the master branch.

Available route shorthand declaration

  • server.get(url, handler)
  • server.post(url, handler)
  • server.put(url, handler)
  • server.head(url, handler)
  • server.delete(url, handler)
  • server.options(url, handler)
  • server.patch(url, handler)

Example

You can see above basic example code here: hello.ts

Check the following code to find out how to: