implement jwt auth

This commit is contained in:
Philipinho
2023-08-05 16:58:34 +01:00
parent cebad0e0a5
commit 6e3ba20fcf
21 changed files with 744 additions and 46 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import { DataSource } from 'typeorm';
import * as dotenv from 'dotenv';
dotenv.config();
export const AppDataSource = new DataSource({
export const AppDataSource: DataSource = new DataSource({
type: 'postgres',
url:
process.env.DATABASE_URL ||
'postgresql://postgres:password@localhost:5432/dc?schema=public',
entities: ['src/**/*.entity.ts'],
entities: ['src/**/*.entity.{ts,js}'],
migrations: ['src/**/migrations/*.{ts,js}'],
subscribers: [],
synchronize: process.env.NODE_ENV === 'development',