Update server.js
Browse files
server.js
CHANGED
|
@@ -54,7 +54,7 @@ app.post('/upload', upload.single('file'), async (req, res) => {
|
|
| 54 |
console.log('Whisper API Response:', whisperResponse.data);
|
| 55 |
|
| 56 |
// Forward the response from the Whisper API back to the iOS app
|
| 57 |
-
|
| 58 |
|
| 59 |
} catch (error) {
|
| 60 |
console.error(error);
|
|
|
|
| 54 |
console.log('Whisper API Response:', whisperResponse.data);
|
| 55 |
|
| 56 |
// Forward the response from the Whisper API back to the iOS app
|
| 57 |
+
res.status(whisperResponse.status).send(whisperResponse.data);
|
| 58 |
|
| 59 |
} catch (error) {
|
| 60 |
console.error(error);
|