Skip to content

Commit

Permalink
refactor client post module
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed Feb 8, 2025
1 parent 9ce9a45 commit cbee056
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
7 changes: 0 additions & 7 deletions apps/eav/src/client/eav-client.module.ts

This file was deleted.

4 changes: 4 additions & 0 deletions apps/eav/src/client/post/client-post.module.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import { Module } from '@nestjs/common';
import { SequelizeModule } from '@nestjs/sequelize';
import { EAVPost } from '@rahino/database';
import { PostController } from './post.controller';
import { PostService } from './post.service';

@Module({
imports: [SequelizeModule.forFeature([EAVPost])],
controllers: [PostController],
providers: [PostService],
})
export class ClientPostModule {}
2 changes: 1 addition & 1 deletion apps/eav/src/client/post/post.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { ApiOperation, ApiQuery, ApiTags } from '@nestjs/swagger';
import { ListFilter } from '@rahino/query-filter';
import { PostService } from './post.service';

@ApiTags('EAV-Posts')
@ApiTags('EAV-Client-Posts')
@Controller({
path: '/api/eav/client/posts',
version: ['1'],
Expand Down
4 changes: 2 additions & 2 deletions apps/eav/src/eav.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { EntityModule } from './admin/entity/entity.module';
import { AttributeValueModule } from './admin/attribute-value/attribute-value.module';
import { BlogPublishModule } from './admin/blog-publish/blog-publish.module';
import { PostModule } from './admin/post/post.module';
import { EAVClientModule } from './client/eav-client.module';
import { ClientPostModule } from './client/post';

@Module({
imports: [
Expand All @@ -25,7 +25,7 @@ import { EAVClientModule } from './client/eav-client.module';
EntityModule,
BlogPublishModule,
PostModule,
EAVClientModule,
ClientPostModule,
],
})
export class EAVModule implements NestModule {
Expand Down

0 comments on commit cbee056

Please sign in to comment.