feat(auth): add Auth service and module
A new authentication service and module were added to the application. The app.module.ts file was updated to include this newly created AuthModule. Also, an initial structure for the AuthService was set up.
This commit is contained in:
parent
e575b669ce
commit
3c57098bbe
@ -3,6 +3,7 @@ import { ConfigModule, ConfigService } from "@nestjs/config";
|
|||||||
import { LogService } from "./logger/logger.service";
|
import { LogService } from "./logger/logger.service";
|
||||||
import { ThrottlerModule } from "@nestjs/throttler";
|
import { ThrottlerModule } from "@nestjs/throttler";
|
||||||
import { DrizzleModule } from './drizzle/drizzle.module';
|
import { DrizzleModule } from './drizzle/drizzle.module';
|
||||||
|
import { AuthModule } from './auth/auth.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
@ -13,7 +14,8 @@ import { DrizzleModule } from './drizzle/drizzle.module';
|
|||||||
ConfigModule.forRoot({
|
ConfigModule.forRoot({
|
||||||
isGlobal: true
|
isGlobal: true
|
||||||
}),
|
}),
|
||||||
DrizzleModule
|
DrizzleModule,
|
||||||
|
AuthModule
|
||||||
],
|
],
|
||||||
exports: [LogService],
|
exports: [LogService],
|
||||||
controllers: [],
|
controllers: [],
|
||||||
|
7
src/auth/auth.module.ts
Normal file
7
src/auth/auth.module.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { Module } from '@nestjs/common';
|
||||||
|
import { AuthService } from './auth.service';
|
||||||
|
|
||||||
|
@Module({
|
||||||
|
providers: [AuthService]
|
||||||
|
})
|
||||||
|
export class AuthModule {}
|
4
src/auth/auth.service.ts
Normal file
4
src/auth/auth.service.ts
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import { Injectable } from '@nestjs/common';
|
||||||
|
|
||||||
|
@Injectable()
|
||||||
|
export class AuthService {}
|
Loading…
x
Reference in New Issue
Block a user