| 12345678910111213141516 |
- 'use server';
- import { ResultDto } from '@/types/response/common';
- import { DomesticSummaryResponse } from '@/types/domesticSummary';
- import { fetchJson } from '@/lib/utils/server';
- const JSON_HEADERS = { 'Accept': 'application/json' } as const;
- // 국내 증시 요약 — 코스피/코스닥/KOSPI200 지수 + 등락종목수 (메인, 익명 열람)
- export async function fetchDomesticSummary(): Promise<ResultDto<DomesticSummaryResponse>>
- {
- return await fetchJson<DomesticSummaryResponse>('/api/market/domestic-summary', {
- method: 'GET',
- headers: JSON_HEADERS
- });
- }
|