move ponder
This commit is contained in:
parent
a9207de195
commit
36b7b429ef
22 changed files with 50 additions and 14 deletions
15
services/ponder/src/api/index.ts
Normal file
15
services/ponder/src/api/index.ts
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue