Skip to content

Commit

Permalink
Rename AocController to AocConnectionController
Browse files Browse the repository at this point in the history
  • Loading branch information
MicahBCode committed Nov 6, 2023
1 parent 668332f commit ff2df24
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions src/aoc/aoc.controller.ts → src/aoc/aoc-connection.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
import { ApiBadRequestResponse, ApiBody, ApiCreatedResponse, ApiNotFoundResponse, ApiOkResponse, ApiParam, ApiQuery, ApiSecurity, ApiTags } from '@nestjs/swagger';
import {
ApiBadRequestResponse,
ApiBody,
ApiCreatedResponse,
ApiNotFoundResponse,
ApiOkResponse,
ApiParam,
ApiQuery,
ApiSecurity,
ApiTags,
} from '@nestjs/swagger';
import { Body, CacheInterceptor, CacheTTL, Controller, Delete, Get, Param, Post, Put, Query, Request, UseGuards, UseInterceptors, ValidationPipe } from '@nestjs/common';
import { AocService } from './aoc.service';
import { PaginationDto } from '../common/Pagination';
Expand All @@ -14,7 +24,7 @@ import { UpdateAocConnectionDto } from './dto/update-aoc-connection.dto';
@ApiTags('AOC')
@Controller('aoc')
@UseInterceptors(CacheInterceptor)
export class AocController {
export class AocConnectionController {
constructor(private aoc: AocService) {
}

Expand Down
4 changes: 2 additions & 2 deletions src/aoc/aoc.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
import { AocConnection } from './entities/aoc-connection.entity';
import { AocService } from './aoc.service';
import { AocController } from './aoc.controller';
import { AocConnectionController } from './aoc-connection.controller';
import { AuthModule } from '../auth/auth.module';

@Module({
Expand All @@ -11,7 +11,7 @@ import { AuthModule } from '../auth/auth.module';
AuthModule,
],
providers: [AocService],
controllers: [AocController],
controllers: [AocConnectionController],
exports: [AocService],
})
export class AocModule {}

0 comments on commit ff2df24

Please sign in to comment.