diff --git a/index.js b/index.js index af07738..1c95092 100644 --- a/index.js +++ b/index.js @@ -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}`, }); }); diff --git a/public/index.html b/public/index.html index 4e0ddd7..dc73514 100644 --- a/public/index.html +++ b/public/index.html @@ -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,