Skip to content

Commit

Permalink
Merge pull request #117 from boostcampwm-2024/fix/controller-url
Browse files Browse the repository at this point in the history
[BE] controller url 수정
  • Loading branch information
uuuo3o authored Nov 14, 2024
2 parents 146f4ae + f07ecea commit 143e5fa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion BE/src/stock/detail/stock-detail.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {}

Expand Down
4 changes: 2 additions & 2 deletions BE/src/stock/topfive/stock-topfive.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions BE/src/stock/trade/history/stock-trade-history.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
Expand Down

0 comments on commit 143e5fa

Please sign in to comment.