changed some stuff

not rlly important
This commit is contained in:
2026-07-17 21:11:13 -05:00
parent 21ae003ded
commit 03c7e0fd30
5 changed files with 19 additions and 23 deletions
+2 -3
View File
@@ -21,8 +21,7 @@
"better-auth": "^1.6.9",
"dotenv": "^17.4.2",
"drizzle-orm": "^0.45.2",
"elysia": "latest",
"zod": "^4.3.6"
"elysia": "latest"
},
"devDependencies": {
"@types/bun": "^1.3.13",
@@ -32,4 +31,4 @@
"postgres": "^3.4.9"
},
"module": "src/index.js"
}
}
+4 -7
View File
@@ -1,10 +1,7 @@
import { auth } from "../lib/auth";
import { Elysia } from "elysia";
import { z } from "zod";
import { Elysia, t } from "elysia";
const app = new Elysia()
.mount("/auth", auth.handler)
.listen(3000);
const app = new Elysia().mount("/auth", auth.handler).listen(3000);
export type App = typeof app;
@@ -14,5 +11,5 @@ export const PUT = app.put;
export const DELETE = app.delete;
console.log(
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`
);
`🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`,
);