Add ElysiaJS integration and update homepage
This commit is contained in:
parent
3197d2fb1b
commit
666b2d0e0d
12 changed files with 112 additions and 100 deletions
4
lib/eden/client.ts
Normal file
4
lib/eden/client.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { treaty } from "@elysia/eden";
|
||||
import type { app } from "@/server";
|
||||
|
||||
export const api = treaty<typeof app>("localhost:3000").api;
|
||||
4
lib/eden/server.ts
Normal file
4
lib/eden/server.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import { treaty } from "@elysia/eden";
|
||||
import { app } from "@/server";
|
||||
|
||||
export const api = treaty(app).api;
|
||||
Loading…
Add table
Add a link
Reference in a new issue