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