feat: add api app
This commit is contained in:
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"deno.enable": false,
|
||||
"deno.enable": true,
|
||||
"deno.lint": false,
|
||||
"deno.unstable": false
|
||||
}
|
||||
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"deno.enablePaths": [
|
||||
"./"
|
||||
],
|
||||
"deno.enable": true,
|
||||
"editor.inlayHints.enabled": "off"
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
```
|
||||
deno task start
|
||||
```
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"imports": {
|
||||
"hono": "npm:hono",
|
||||
"zod": "npm:zod",
|
||||
"@hono/zod-validator": "npm:@hono/zod-validator"
|
||||
},
|
||||
"tasks": {
|
||||
"start": "deno run --allow-net main.ts"
|
||||
},
|
||||
"compilerOptions": {
|
||||
"jsx": "precompile",
|
||||
"jsxImportSource": "hono/jsx"
|
||||
}
|
||||
}
|
||||
Generated
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"version": "4",
|
||||
"specifiers": {
|
||||
"jsr:@hono/hono@^4.6.4": "4.6.4"
|
||||
},
|
||||
"jsr": {
|
||||
"@hono/hono@4.6.4": {
|
||||
"integrity": "9bbd937653ab902405af33743561140f8883d27dc730eb9ceac665e2468c8bf6"
|
||||
}
|
||||
},
|
||||
"workspace": {
|
||||
"dependencies": [
|
||||
"jsr:@hono/hono@^4.6.4"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
import { Hono } from 'hono';
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
app.get('/', (c) => c.text('ClassroomIO API with Deno 😎!'));
|
||||
|
||||
Deno.serve({ port: 8787 }, app.fetch);
|
||||
Reference in New Issue
Block a user