create admins endpoint

This commit is contained in:
Errormacr
2023-11-18 20:41:14 +03:00
parent 6bf6886826
commit 5c0b94e09e
59 changed files with 704 additions and 3 deletions

17
backend/dist/config/datasource.js vendored Normal file
View File

@@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.db = void 0;
const typeorm_1 = require("typeorm");
exports.db = new typeorm_1.DataSource({
type: 'postgres',
host: process.env.DATABASE_HOST || 'localhost',
port: +process.env.DATABASE_PORT || 5432,
username: process.env.DATABASE_USERNAME || 'postgres',
password: process.env.DATABASE_PASSWORD || '',
database: process.env.DATABASE_DB || 'bot_db',
synchronize: true,
logging: false,
entities: ['/libs/database/*.ts'],
migrations: ['/libs/migrations/*.ts']
});
//# sourceMappingURL=datasource.js.map