From f07eceac4850ec77cdf53232a5d01c48efdba84b Mon Sep 17 00:00:00 2001 From: JIN Date: Thu, 14 Nov 2024 17:40:24 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20fix:=20controller=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BE/src/stock/detail/stock-detail.controller.ts | 2 +- BE/src/stock/topfive/stock-topfive.controller.ts | 4 ++-- .../stock/trade/history/stock-trade-history.controller.ts | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BE/src/stock/detail/stock-detail.controller.ts b/BE/src/stock/detail/stock-detail.controller.ts index c9f74222..5df8d6c7 100644 --- a/BE/src/stock/detail/stock-detail.controller.ts +++ b/BE/src/stock/detail/stock-detail.controller.ts @@ -12,7 +12,7 @@ import { StockDetailChartRequestDto } from './dto/stock-detail-chart-request.dto import { InquirePriceChartResponseDto } from './dto/stock-detail-chart-response.dto'; @ApiTags('특정 주식 종목에 대한 detail 페이지 조회 API') -@Controller('/api/stocks') +@Controller('/api/stocks/detail') export class StockDetailController { constructor(private readonly stockDetailService: StockDetailService) {} diff --git a/BE/src/stock/topfive/stock-topfive.controller.ts b/BE/src/stock/topfive/stock-topfive.controller.ts index 7da63d4c..3d6258e0 100644 --- a/BE/src/stock/topfive/stock-topfive.controller.ts +++ b/BE/src/stock/topfive/stock-topfive.controller.ts @@ -5,11 +5,11 @@ import { StockRankingResponseDto } from './dto/stock-ranking-response.dto'; import { MarketType } from '../enum/market-type'; @ApiTags('오늘의 상/하위 종목 조회 API') -@Controller('/api/stocks') +@Controller('/api/stocks/topfive') export class StockTopfiveController { constructor(private readonly topFiveService: StockTopfiveService) {} - @Get('topfive') + @Get() @ApiOperation({ summary: '오늘의 상/하위 종목 조회 API' }) @ApiQuery({ name: 'market', diff --git a/BE/src/stock/trade/history/stock-trade-history.controller.ts b/BE/src/stock/trade/history/stock-trade-history.controller.ts index 4885aed2..1b4c1533 100644 --- a/BE/src/stock/trade/history/stock-trade-history.controller.ts +++ b/BE/src/stock/trade/history/stock-trade-history.controller.ts @@ -5,13 +5,13 @@ import { TodayStockTradeHistoryResponseDto } from './dto/today-stock-trade-histo import { DailyStockTradeHistoryDataDto } from './dto/daily-stock-trade-history-data.dto'; @ApiTags('주식현재가 체결 조회 API') -@Controller('/api/stocks') +@Controller('/api/stocks/trade-history') export class StockTradeHistoryController { constructor( private readonly stockTradeHistoryService: StockTradeHistoryService, ) {} - @Get(':stockCode/today-trade-history') + @Get(':stockCode/today') @ApiOperation({ summary: '단일 주식 종목에 대한 주식현재가 체결 API' }) @ApiParam({ name: 'stockCode', @@ -29,7 +29,7 @@ export class StockTradeHistoryController { return this.stockTradeHistoryService.getTodayStockTradeHistory(stockCode); } - @Get(':stockCode/daily-trade-history') + @Get(':stockCode/daily') @ApiOperation({ summary: '단일 주식 종목에 대한 일자별 주식현재가 API' }) @ApiParam({ name: 'stockCode',