UNPKG

bunr6statapi

Version:

Wrapper for Rainbow Six Siege API

13 lines (10 loc) 284 B
export const ApiClient = async (url: string, header: any, method: string): Promise<any> => { const response = await fetch(url, { method: method, headers: header, }); if (!response.ok) { throw new Error('Error with response'); } return response; };