Spaces:
Sleeping
Sleeping
Update frontend_by_gemini/script.js
Browse files
frontend_by_gemini/script.js
CHANGED
|
@@ -49,7 +49,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
| 49 |
|
| 50 |
try {
|
| 51 |
// FIXED: Use the full, absolute URL for the API endpoint
|
| 52 |
-
const response = await fetch('
|
| 53 |
method: 'POST',
|
| 54 |
body: formData
|
| 55 |
});
|
|
|
|
| 49 |
|
| 50 |
try {
|
| 51 |
// FIXED: Use the full, absolute URL for the API endpoint
|
| 52 |
+
const response = await fetch('/analyze', {
|
| 53 |
method: 'POST',
|
| 54 |
body: formData
|
| 55 |
});
|