Browse Source

refactor: create new modules for meta auth and data

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/5444/head
Pranav C 2 years ago
parent
commit
c5c204f727
  1. 2
      packages/nocodb-nest/src/app.module.ts
  2. 9
      packages/nocodb-nest/src/modules/api-docs/api-docs.module.ts
  3. 11
      packages/nocodb-nest/src/modules/meta/meta.module.ts

2
packages/nocodb-nest/src/app.module.ts

@ -59,6 +59,7 @@ import type {
MiddlewareConsumer, MiddlewareConsumer,
OnApplicationBootstrap, OnApplicationBootstrap,
} from '@nestjs/common'; } from '@nestjs/common';
import { MetaModule } from './modules/meta/meta.module';
@Module({ @Module({
imports: [ imports: [
@ -106,6 +107,7 @@ import type {
CachesModule, CachesModule,
...(process.env['PLAYWRIGHT_TEST'] === 'true' ? [TestModule] : []), ...(process.env['PLAYWRIGHT_TEST'] === 'true' ? [TestModule] : []),
PluginsModule, PluginsModule,
MetaModule,
], ],
controllers: [], controllers: [],
providers: [ providers: [

9
packages/nocodb-nest/src/modules/api-docs/api-docs.module.ts

@ -1,9 +0,0 @@
import { Module } from '@nestjs/common';
import { ApiDocsService } from '../api-docs.service';
import { ApiDocsController } from '../../controllers/api-docs/api-docs.controller';
@Module({
controllers: [ApiDocsController],
providers: [ApiDocsService],
})
export class ApiDocsModule {}

11
packages/nocodb-nest/src/modules/meta/meta.module.ts

@ -0,0 +1,11 @@
import { Module } from '@nestjs/common';
import { ApiDocsController } from '../../controllers/api-docs/api-docs.controller'
import { ApiTokensController } from '../../controllers/api-tokens.controller'
import { ApiTokensService } from '../../services/api-tokens.service'
import { ApiDocsService } from '../api-docs.service'
@Module({})
export class MetaModule {
controllers: [ApiDocsController, ApiTokensController],
providers: [ApiDocsService, ApiTokensService],
}
Loading…
Cancel
Save