-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add danet v2 alpha which uses hono (#92)
- Loading branch information
1 parent
6d0c859
commit de31692
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "Danet V2 (Hono)", | ||
"description": "The most mature backend framework for Deno, V2 in Alpha", | ||
"website": "https://danet.land/", | ||
"benchmarks": { | ||
"hello_bench": "deno run -A --unstable hello_bench.ts" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Module, Controller, Get, DanetApplication } from "https://deno.land/x/[email protected]/mod.ts"; | ||
|
||
@Controller() | ||
class HelloBenchController { | ||
@Get() | ||
hello() { | ||
return 'Hello, Bench!' | ||
} | ||
} | ||
|
||
@Module({ | ||
controllers: [HelloBenchController] | ||
}) | ||
class HelloBenchModule {} | ||
|
||
const danetApp = new DanetApplication(); | ||
await danetApp.init(HelloBenchModule); | ||
await danetApp.listen(8000); |