const deleteQuiz = async (token, gId) => { const request = { method: 'DELETE', headers: { 'Content-Type': 'application/json', Authorization: `Bearer ${token}`, }, } await fetch(`http://localhost:5005/admin/quiz/${gId}`, request) } export default { deleteQuiz }