为什么选 Hono
Hono 极轻、TS 优先、路由清晰。
import { Hono } from 'hono'
const app = new Hono()
app.get('/hello', (c) => c.json({ hi: 'mblog' }))
中间件与错误处理
统一 { error: { code, message } } 契约。
Hono 极轻、TS 优先、路由清晰。
import { Hono } from 'hono'
const app = new Hono()
app.get('/hello', (c) => c.json({ hi: 'mblog' }))
统一 { error: { code, message } } 契约。
评论
评论加载中…