move ponder

This commit is contained in:
johba 2025-09-23 20:29:51 +02:00
parent a9207de195
commit 36b7b429ef
22 changed files with 50 additions and 14 deletions

View file

@ -0,0 +1,15 @@
import { db } from "ponder:api";
import schema from "ponder:schema";
import { Hono } from "hono";
import { client, graphql } from "ponder";
const app = new Hono();
// SQL endpoint
app.use("/sql/*", client({ db, schema }));
// GraphQL endpoints
app.use("/graphql", graphql({ db, schema }));
app.use("/", graphql({ db, schema }));
export default app;