diff --git a/utils/Fetch.ts b/utils/Fetch.ts index b4b7b55..db88b47 100644 --- a/utils/Fetch.ts +++ b/utils/Fetch.ts @@ -4,7 +4,7 @@ import { KoreanbotsEndPoints } from './Constants' const Fetch = async (endpoint: string, options?: RequestInit):Promise> => { const url = KoreanbotsEndPoints.baseAPI + ( endpoint.startsWith('/') ? endpoint : '/' + endpoint) - const res = await fetch(url, options ?? { method: 'GET' }) + const res = await fetch(url, { method: 'GET', headers: { 'content-type': 'application/json', ...options.headers }, ...options }) let json = {}