Created
April 3, 2025 08:38
-
-
Save modster/db0fd9700a71ab92edcd626cf5bc38a5 to your computer and use it in GitHub Desktop.
hello hono example
This file contains hidden or 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
import { Hono } from 'hono' | |
import { logger } from 'hono/logger' | |
import { poweredBy } from 'hono/powered-by' | |
const app = new Hono() | |
app.use( '*', logger(), poweredBy() ) | |
app.get( '/', ( c ) => | |
{ | |
return c.text( 'Hello Deno!' ) | |
} | |
) | |
Deno.serve( app.fetch ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment