Switched from PUT to POST because i'm stupid, also src folder

This commit is contained in:
Oskar Winkels 2020-01-12 23:26:15 +01:00 committed by Oskar
parent c5bc2aa7c1
commit fe519bf80a
3 changed files with 2 additions and 4 deletions

View File

@ -53,10 +53,8 @@ async function shareQuiz() {
var db = 'https://quiz.fasttube.de/db/' var db = 'https://quiz.fasttube.de/db/'
var response = await fetch(db, { var response = await fetch(db, {
method: 'PUT', method: 'POST',
headers: { headers: {'Content-Type': 'text/plain'},
'Content-Type': 'text/plain'
},
body: JSON.stringify(quizData) body: JSON.stringify(quizData)
}) })