18 lines
776 B
TypeScript
18 lines
776 B
TypeScript
import { Module } from '@nestjs/common';
|
|||
|
|
import { AuthModule } from '../auth/auth.module';
|
||
|
|
import { BillingModule } from '../billing/billing.module';
|
||
|
|
import { ApiKeyAuthGuard } from './api-key-auth.guard';
|
||
|
|
import { ApiKeysController } from './api-keys.controller';
|
||
|
|
import { ApiKeysService } from './api-keys.service';
|
||
|
|
import { PublicApiV1Controller } from './public-api-v1.controller';
|
||
|
|
import { WebhooksController } from './webhooks.controller';
|
||
|
|
import { WebhooksService } from './webhooks.service';
|
||
|
|
|
||
|
|
@Module({
|
||
|
|
imports: [AuthModule, BillingModule],
|
||
|
|
controllers: [ApiKeysController, WebhooksController, PublicApiV1Controller],
|
||
|
|
providers: [ApiKeysService, ApiKeyAuthGuard, WebhooksService],
|
||
|
|
exports: [ApiKeysService, WebhooksService],
|
||
|
|
})
|
||
|
|
export class PublicApiModule {}
|