forked from kkfive/kkapi-open
-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.module.js
46 lines (46 loc) · 2.05 KB
/
app.module.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppModule = void 0;
const axios_1 = require("@nestjs/axios");
const common_1 = require("@nestjs/common");
const mongoose_1 = require("@nestjs/mongoose");
const config_1 = require("@nestjs/config");
require('dotenv').config({ path: `./local.env` });
const app_controller_1 = require("./app.controller");
const app_service_1 = require("./app.service");
const user_module_1 = require("./modules/users/user.module");
const auth_module_1 = require("./modules/auth/auth.module");
const ispeak_module_1 = require("./modules/ispeak/ispeak.module");
const openApi_module_1 = require("./modules/openApi/openApi.module");
const controllers = [app_controller_1.AppController];
const providers = [app_service_1.AppService];
let AppModule = class AppModule {
};
AppModule = __decorate([
(0, common_1.Module)({
imports: [
axios_1.HttpModule,
config_1.ConfigModule.forRoot({
isGlobal: true,
}),
auth_module_1.AuthModule,
user_module_1.UserModule,
ispeak_module_1.IspeakModule,
openApi_module_1.OpenApiModule,
mongoose_1.MongooseModule.forRoot(process.env.DATABASE_URL, {
user: process.env.DATABASE_USER,
pass: process.env.DATABASE_PASSWORD,
}),
],
controllers,
providers,
})
], AppModule);
exports.AppModule = AppModule;
//# sourceMappingURL=app.module.js.map