[feat] Basic Hono+Drizzle Server

This commit is contained in:
2026-06-07 20:30:11 +08:00
Unverified
parent 4541f8dca6
commit 9e506c06fe
12 changed files with 961 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
import { Context } from "@hono/hono";
import { ContentfulStatusCode } from "@hono/hono/utils/http-status";
export function commonResponse(
c: Context,
ok: boolean,
status: ContentfulStatusCode,
data: object,
message = null,
) {
return c.json({
ok,
data,
message,
}, status);
}