Skip to content

Instantly share code, notes, and snippets.

@modster
Created April 3, 2025 08:38
Show Gist options
  • Save modster/db0fd9700a71ab92edcd626cf5bc38a5 to your computer and use it in GitHub Desktop.
Save modster/db0fd9700a71ab92edcd626cf5bc38a5 to your computer and use it in GitHub Desktop.

Revisions

  1. modster revised this gist Apr 3, 2025. 1 changed file with 15 additions and 1 deletion.
    16 changes: 15 additions & 1 deletion main.ts
    Original file line number Diff line number Diff line change
    @@ -1 +1,15 @@
    ‎‎
    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 )
  2. modster created this gist Apr 3, 2025.
    1 change: 1 addition & 0 deletions main.ts
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ‎‎