feat(db): migration and database setup
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { db } from "@basango/db/client";
|
||||
import type { MiddlewareHandler } from "hono";
|
||||
|
||||
export const withDatabase: MiddlewareHandler = async (c, next) => {
|
||||
c.set("db", db);
|
||||
|
||||
await next();
|
||||
};
|
||||
Reference in New Issue
Block a user