Skip to content

Instantly share code, notes, and snippets.

@GaZaTu
Created September 9, 2019 15:39
Show Gist options
  • Save GaZaTu/4c1695a5da93b44caae5db09f5ae9284 to your computer and use it in GitHub Desktop.
Save GaZaTu/4c1695a5da93b44caae5db09f5ae9284 to your computer and use it in GitHub Desktop.
fetch('https://api.gazatu.xyz/trivia/questions', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
category: 'TEST_CATEGORY',
question: 'TEST_QUESTION',
answer: 'TEST_ANSWER',
hint1: 'TEST_HINT1', // nullable
hint2: 'TEST_HINT2', // nullable
submitter: 'TEST_SUBMITTER', // nullable
}),
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment