Update app.py
Browse files
app.py
CHANGED
@@ -208,8 +208,7 @@ def index():
|
|
208 |
function updateFormDataPreview(formJson) {
|
209 |
const previewDiv = document.getElementById('formDataPreview');
|
210 |
previewDiv.innerHTML = '<strong>Form data (JSON):</strong><br>' +
|
211 |
-
JSON.stringify(formJson, null, 2)
|
212 |
-
' <span class="comment">// この値がフォーム部分です。</span>';
|
213 |
}
|
214 |
|
215 |
function updateFetchCode() {
|
@@ -226,7 +225,7 @@ fetch('${apiUrl}', {
|
|
226 |
headers: {
|
227 |
'Content-Type': 'multipart/form-data'
|
228 |
},
|
229 |
-
body:
|
230 |
})
|
231 |
.then(response => {
|
232 |
if (!response.ok) {
|
|
|
208 |
function updateFormDataPreview(formJson) {
|
209 |
const previewDiv = document.getElementById('formDataPreview');
|
210 |
previewDiv.innerHTML = '<strong>Form data (JSON):</strong><br>' +
|
211 |
+
JSON.stringify(formJson, null, 2);
|
|
|
212 |
}
|
213 |
|
214 |
function updateFetchCode() {
|
|
|
225 |
headers: {
|
226 |
'Content-Type': 'multipart/form-data'
|
227 |
},
|
228 |
+
body: ${JSON.stringify(formJson, null, 2)}
|
229 |
})
|
230 |
.then(response => {
|
231 |
if (!response.ok) {
|