brief-08-back/src/app.module.ts
Mathis 2a879c71f1
feat: Update fetchUser function and add new modules
Updated the 'fetchUser' function in 'auth.service.ts', removing the specific user ID parameter, and added a return statement. Moreover, 'ProductsModule', 'StocksModule', and 'TransactionsModule' have been imported to 'app.module.ts'.
2024-07-12 14:25:05 +02:00

35 lines
934 B
TypeScript

import { Module } from "@nestjs/common";
import { ConfigModule, ConfigService } from "@nestjs/config";
import { ThrottlerModule } from "@nestjs/throttler";
import { AuthModule } from "./auth/auth.module";
import { CredentialsModule } from "./credentials/credentials.module";
import { DrizzleModule } from "./drizzle/drizzle.module";
import { LogService } from "./logger/logger.service";
import { ProductsModule } from './products/products.module';
import { StocksModule } from './stocks/stocks.module';
import { TransactionsModule } from './transactions/transactions.module';
@Module({
imports: [
ThrottlerModule.forRoot([
{
ttl: 60000,
limit: 10,
},
]),
ConfigModule.forRoot({
isGlobal: true,
}),
DrizzleModule,
AuthModule,
CredentialsModule,
ProductsModule,
StocksModule,
TransactionsModule,
],
exports: [LogService],
controllers: [],
providers: [LogService],
})
export class AppModule {}