deno.land / x / abc@v1.3.3 / examples / cat_app / main.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
import { 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`);
abc

Version Info

Tagged at
3 years ago