mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
feat: add header swagger docs
This commit is contained in:
@@ -1,16 +1,13 @@
|
||||
import { Module } from "@nestjs/common";
|
||||
import { EnsureTenantIsInitializedGuard } from "./EnsureTenantIsInitialized.guard";
|
||||
import { TenancyGlobalGuard } from "./TenancyGlobal.guard";
|
||||
import { EnsureTenantIsSeededGuard } from "./EnsureTenantIsSeeded.guards";
|
||||
import { APP_GUARD } from "@nestjs/core";
|
||||
import { TenancyContext } from "./TenancyContext.service";
|
||||
import { TenantController } from "./Tenant.controller";
|
||||
import { TenancyInitializeModelsGuard } from "./TenancyInitializeModels.guard";
|
||||
|
||||
import { Module } from '@nestjs/common';
|
||||
import { EnsureTenantIsInitializedGuard } from './EnsureTenantIsInitialized.guard';
|
||||
import { TenancyGlobalGuard } from './TenancyGlobal.guard';
|
||||
import { EnsureTenantIsSeededGuard } from './EnsureTenantIsSeeded.guards';
|
||||
import { APP_GUARD } from '@nestjs/core';
|
||||
import { TenancyContext } from './TenancyContext.service';
|
||||
import { TenancyInitializeModelsGuard } from './TenancyInitializeModels.guard';
|
||||
|
||||
@Module({
|
||||
exports: [TenancyContext],
|
||||
controllers: [TenantController],
|
||||
providers: [
|
||||
TenancyContext,
|
||||
{
|
||||
@@ -23,12 +20,12 @@ import { TenancyInitializeModelsGuard } from "./TenancyInitializeModels.guard";
|
||||
},
|
||||
{
|
||||
provide: APP_GUARD,
|
||||
useClass: EnsureTenantIsSeededGuard
|
||||
useClass: EnsureTenantIsSeededGuard,
|
||||
},
|
||||
{
|
||||
provide: APP_GUARD,
|
||||
useClass: TenancyInitializeModelsGuard
|
||||
}
|
||||
]
|
||||
useClass: TenancyInitializeModelsGuard,
|
||||
},
|
||||
],
|
||||
})
|
||||
export class TenancyModule {}
|
||||
export class TenancyModule {}
|
||||
|
||||
Reference in New Issue
Block a user