Update index.js
Browse files
index.js
CHANGED
|
@@ -31,10 +31,10 @@ app.get('*', async (req, res) => {
|
|
| 31 |
data: file.data
|
| 32 |
})
|
| 33 |
if (upload_result.status == 200) {
|
| 34 |
-
res.
|
| 35 |
vid: upload_info.data.vid,
|
| 36 |
url: `https://sf16-sg-default.akamaized.net/obj/${upload_info.data.uri}`
|
| 37 |
-
})
|
| 38 |
} else {
|
| 39 |
throw Error
|
| 40 |
}
|
|
|
|
| 31 |
data: file.data
|
| 32 |
})
|
| 33 |
if (upload_result.status == 200) {
|
| 34 |
+
res.json({
|
| 35 |
vid: upload_info.data.vid,
|
| 36 |
url: `https://sf16-sg-default.akamaized.net/obj/${upload_info.data.uri}`
|
| 37 |
+
})
|
| 38 |
} else {
|
| 39 |
throw Error
|
| 40 |
}
|