diff --git a/backend/server.js b/backend/server.js index b8f66fb..031fa64 100644 --- a/backend/server.js +++ b/backend/server.js @@ -97,7 +97,7 @@ router.get ('/search/listings', async (req, res, next) => { //Get only ads with location query = Object.assign (query, { - has_map: true, + hasMap: true, }); //AND diff --git a/web/src/lib/api.js b/web/src/lib/api.js index e781a4e..a320091 100644 --- a/web/src/lib/api.js +++ b/web/src/lib/api.js @@ -1,7 +1,8 @@ import fetch from 'isomorphic-fetch' -const BASE_URL = 'localhost'; +//const BASE_URL = 'localhost'; //const BASE_URL = '192.168.0.13'; +const BASE_URL = '138.68.67.31'; export const saveContactRequest = (listingId, params) => { diff --git a/web/src/lib/helpers.js b/web/src/lib/helpers.js index 1ec6706..273b717 100644 --- a/web/src/lib/helpers.js +++ b/web/src/lib/helpers.js @@ -34,7 +34,7 @@ S poĊĦtovanjem export const listingUrl = (id) => { // TODO: fix this once removing hardcoded values - return `http://localhost:8080/?listingId=${id}` + return `http://http://138.68.67.31/?listingId=${id}` } export const isMobile = () => window.matchMedia("(max-width: 768px)").matches diff --git a/web/webpack.config.js b/web/webpack.config.js index 3a8f7c2..d7bb88b 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -3,7 +3,7 @@ module.exports = { output: { path: __dirname + "/dist", filename: "app.bundle.js", - publicPath: "http://0.0.0.0:8080/" + publicPath: "http://138.68.67.31:8080/" }, devServer: { // .. rest of devserver options