This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: "David", | |
phone: 122345678, | |
location: { | |
city: "Camden", | |
country: "UK" | |
} | |
}; | |
const updates = { | |
name: "David", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: 'David', | |
phone: 122345678, | |
location: { | |
city: 'Camden', | |
country: 'UK' | |
} | |
}; | |
const updates = { | |
name: 'David', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: 'David', | |
phone: 122345678, | |
location: { | |
city: 'Camden', | |
country: 'UK' | |
} | |
}; | |
const updates = { | |
name: 'David', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const updates = { | |
name: "David", | |
phone: 123456789, | |
location: { | |
city: "Smithfield" | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: "David", | |
phone: 122345678, | |
location: { | |
city: "Camden", | |
country: "UK" | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: "David", | |
phone: 122345678, | |
location: { | |
city: "Camden", | |
country: "UK" | |
} | |
}; | |
const updates = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const user = { | |
name: 'David', | |
phone: 122345678, | |
location: { | |
city: 'Camden', | |
country: 'UK' | |
} | |
}; | |
const updates = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require("path"); | |
const express = require("express"); | |
const app = express(); // create express app | |
// add middlewares | |
app.use(express.static(path.join(__dirname, "..", "build"))); | |
app.use(express.static("public")); | |
app.use((req, res, next) => { | |
res.sendFile(path.join(__dirname, "..", "build", "index.html")); |