| 12345678910111213 |
- 'use server';
- import { ResultDto } from '@/types/response/common';
- import { fetchJson } from '@/lib/utils/server';
- import Config from '@/types/config';
- // Config 값 조회
- export async function fetchConfig(): Promise<ResultDto<Config|null>> {
- return await fetchJson<Config>('/api/config', {
- method: 'GET',
- headers: {'Content-Type': 'application/json'},
- });
- }
|