change baseUrl
This commit is contained in:
@@ -21,7 +21,7 @@ app.post('/', uploadMiddleware, (req, res) => {
|
||||
res.json({
|
||||
success: true,
|
||||
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();
|
||||
formData.append('image', imageFile);
|
||||
|
||||
fetch('http://localhost:5000/', {
|
||||
fetch('https://img-resize-xxx.herokuapp.com/', {
|
||||
method: 'POST',
|
||||
headers: {},
|
||||
body: formData,
|
||||
|
||||
Reference in New Issue
Block a user