Skip to content

Commit de31692

Browse files
authored
feat: add danet v2 alpha which uses hono (#92)
1 parent 6d0c859 commit de31692

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

frameworks/danet_v2/framework.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Danet V2 (Hono)",
3+
"description": "The most mature backend framework for Deno, V2 in Alpha",
4+
"website": "https://danet.land/",
5+
"benchmarks": {
6+
"hello_bench": "deno run -A --unstable hello_bench.ts"
7+
}
8+
}

frameworks/danet_v2/hello_bench.ts

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { Module, Controller, Get, DanetApplication } from "https://deno.land/x/[email protected]/mod.ts";
2+
3+
@Controller()
4+
class HelloBenchController {
5+
@Get()
6+
hello() {
7+
return 'Hello, Bench!'
8+
}
9+
}
10+
11+
@Module({
12+
controllers: [HelloBenchController]
13+
})
14+
class HelloBenchModule {}
15+
16+
const danetApp = new DanetApplication();
17+
await danetApp.init(HelloBenchModule);
18+
await danetApp.listen(8000);

0 commit comments

Comments
 (0)