Logo
Explore Help
Sign In
kennethnym/freya
1
0
Fork 0
You've already forked freya
mirror of https://github.com/kennethnym/freya synced 2026-06-26 03:11:14 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
9837ee2b7ae31604c4c92d7d844b7aafcd25d676
freya/apps/aelis-backend/src/db.ts

6 lines
106 B
TypeScript
Raw Normal View History

feat(backend): add BetterAuth email/password authentication - 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>
2026-01-25 16:21:00 +00:00
import { Pool } from "pg"
export const pool = new Pool({
connectionString: process.env.DATABASE_URL,
})
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.3 Page: 45ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API