more organized

This commit is contained in:
Sanjib Sen 2025-01-15 17:44:05 +06:00
parent f96fb843de
commit d2b5cf6516
4 changed files with 8 additions and 2 deletions

6
.env.services.example Normal file
View file

@ -0,0 +1,6 @@
DB_USERNAME=
DB_PASSWORD=
DB_PORT=
MINIO_ROOT_USER=
MINIO_ROOT_PASSWORD=

View file

@ -27,7 +27,7 @@ const app = new Elysia()
.all("/api/auth/*", betterAuthView)
.use(note)
.get("/user", ({ user, session }) => userInfo(user, session))
.get("/", () => "Server is Running")
.get("/", () => `${baseConfig.SERVICE_NAME} Server is Running`)
validateEnv();
app.listen(baseConfig.PORT);

View file

@ -3,7 +3,7 @@ import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "../../db/index";
import { openAPI } from "better-auth/plugins"
import { user, account, verification, session } from "../../db/schema";
import { sendMail } from "../mail";
import { sendMail } from "../mail/mail";
import { renderToStaticMarkup } from "react-dom/server";
import { createElement } from "react";
import AuthEmail from "../../emails/auth";