change baseUrl
This commit is contained in:
@@ -21,7 +21,7 @@ app.post('/', uploadMiddleware, (req, res) => {
|
|||||||
res.json({
|
res.json({
|
||||||
success: true,
|
success: true,
|
||||||
message: 'Success upload file',
|
message: 'Success upload file',
|
||||||
urlImage: `http://localhost:5000/public/${req.file.filename}`,
|
urlImage: `https://img-resize-xxx.herokuapp.com//public/${req.file.filename}`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -257,7 +257,7 @@
|
|||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('image', imageFile);
|
formData.append('image', imageFile);
|
||||||
|
|
||||||
fetch('http://localhost:5000/', {
|
fetch('https://img-resize-xxx.herokuapp.com/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {},
|
headers: {},
|
||||||
body: formData,
|
body: formData,
|
||||||
|
|||||||
Reference in New Issue
Block a user