Login System + API

This commit is contained in:
Moritz Utcke
2023-03-25 19:51:35 +04:00
parent dcbdf0e8d0
commit 5285f832bf
19 changed files with 551 additions and 7 deletions

19
src/lib/shared.ts Normal file
View File

@@ -0,0 +1,19 @@
import knex, { Knex } from "knex";
export function dbOpen(): Knex {
const db = knex({
client: 'pg',
connection: {
host : '127.0.0.1',
port : 5436,
user : 'main',
password : 'hHMP8cd^N3SnzGRR',
database : 'main'
}
})
return db;
}
export const db = dbOpen();