deno.land / x / abc@v1.3.3 / examples / cat_app / main.ts
12345678910111213import { Application } from "../../mod.ts";import { create, findAll, findOne } from "./handler.ts";
const app = new Application();
app .get("/", findAll) .get("/:id", findOne) .post("/", create) .start({ port: 8080 });
console.log(`server listening on http://localhost:8080`);
Version Info