forked from StellarSplit/StellarSplit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth.module.ts
More file actions
36 lines (35 loc) · 1.02 KB
/
Copy pathauth.module.ts
File metadata and controls
36 lines (35 loc) · 1.02 KB
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
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AuthorizationService } from './services/authorization.service';
import { AuthorizationGuard } from './guards/authorization.guard';
import { JwtAuthGuard } from './guards/jwt-auth.guard';
import { Split } from '../entities/split.entity';
import { Participant } from '../entities/participant.entity';
import { Receipt } from '../receipts/entities/receipt.entity';
import { Dispute } from '../entities/dispute.entity';
import { Group } from '../group/entities/group.entity';
import { ReceiptPolicyService } from '../receipts/receipt-policy.service';
@Module({
imports: [
TypeOrmModule.forFeature([
Split,
Participant,
Receipt,
Dispute,
Group,
]),
],
providers: [
AuthorizationService,
AuthorizationGuard,
JwtAuthGuard,
ReceiptPolicyService,
],
exports: [
AuthorizationService,
AuthorizationGuard,
JwtAuthGuard,
ReceiptPolicyService,
],
})
export class AuthModule {}