generated from pure_sagacity/turborepo-starter-project
changed some stuff
not rlly important
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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}`,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user