mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
* refactored adapters to run test suites * fix bun version for tests * added missing adapter tests and refactored examples to use `bknd.config.ts` where applicable
10 lines
222 B
TypeScript
10 lines
222 B
TypeScript
import { getApp } from "~/bknd";
|
|
|
|
const handler = async (args: { request: Request }) => {
|
|
const app = await getApp();
|
|
return app.fetch(args.request);
|
|
};
|
|
|
|
export const loader = handler;
|
|
export const action = handler;
|