forked from MergeFi/backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgithub.module.ts
More file actions
20 lines (19 loc) · 872 Bytes
/
Copy pathgithub.module.ts
File metadata and controls
20 lines (19 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Bounty, Issue, Repository, WebhookEvent } from '../common/entities';
import { GithubSyncService } from './github-sync.service';
import { GithubController } from './github.controller';
import { GithubWebhooksService } from './github-webhooks.service';
import { GithubWebhooksController } from './github-webhooks.controller';
import { BountiesModule } from '../bounties/bounties.module';
import { githubOctokitProvider } from './octokit.provider';
@Module({
imports: [
TypeOrmModule.forFeature([Repository, Issue, Bounty, WebhookEvent]),
BountiesModule,
],
controllers: [GithubController, GithubWebhooksController],
providers: [githubOctokitProvider, GithubSyncService, GithubWebhooksService],
exports: [GithubSyncService],
})
export class GithubModule {}