change baseUrl

This commit is contained in:
solehudin5699
2022-02-27 22:33:23 +07:00
parent 7761501545
commit 08fa3eb26f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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,