mirror of
https://github.com/kennethnym/freya
synced 2026-06-18 23:51:17 +01:00
- Add PostgreSQL connection (src/db.ts) - Configure BetterAuth with email/password (src/auth/index.ts) - Add session middleware for route protection (src/auth/session-middleware.ts) - Add registerAuthHandlers for mounting auth routes (src/auth/http.ts) - Rename index.ts to server.ts - Add .env.example with required environment variables Co-authored-by: Ona <no-reply@ona.com>
6 lines
106 B
TypeScript
6 lines
106 B
TypeScript
import { Pool } from "pg"
|
|
|
|
export const pool = new Pool({
|
|
connectionString: process.env.DATABASE_URL,
|
|
})
|