mirror of
https://github.com/honojs/hono.git
synced 2024-12-01 10:51:01 +00:00
227 B
227 B
Logger Middleware
Usage
index.js:
import { Hono } from 'hono'
import { logger } from 'hono/logger'
export const app = new Hono()
app.use('*', logger())
app.get('/', (c) => c.text('Hello Hono!'))
app.fire()