You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1023 B
32 lines
1023 B
import { Module } from "@nestjs/common"; |
|
import { AppController } from "./app.controller"; |
|
import { AppService } from "./app.service"; |
|
import { ConfigModule } from "@nestjs/config"; |
|
import { SequelizeModule } from "@nestjs/sequelize"; |
|
import { databaseConfig } from "./config/database.config"; |
|
import { UsersModule } from './users/users.module'; |
|
import { ProductsModule } from './products/products.module'; |
|
import { CartModule } from './cart/cart.module'; |
|
import { WalletModule } from './wallet/wallet.module'; |
|
import { InvoiceModule } from './invoice/invoice.module'; |
|
import { AdminModule } from './admin/admin.module'; |
|
import { PaymentModule } from "./payment/payment.module"; |
|
|
|
@Module({ |
|
imports: [ |
|
ConfigModule.forRoot({ |
|
isGlobal: true, |
|
}), |
|
SequelizeModule.forRoot(databaseConfig), |
|
UsersModule, |
|
ProductsModule, |
|
CartModule, |
|
WalletModule, |
|
InvoiceModule, |
|
AdminModule, |
|
PaymentModule |
|
], |
|
controllers: [AppController], |
|
providers: [AppService], |
|
}) |
|
export class AppModule {}
|
|
|