Skip to content

Commit

Permalink
created new apis, fixed previous bugs & made some improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
realpxd authored Jan 26, 2024
1 parent 9cbbd32 commit ef09939
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions x-clone-backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ app.use(express.json())
const port = process.env.PORT || 5000
const uri = process.env.ATLAS_URI

<<<<<<< HEAD

=======
>>>>>>> 42a8091ddfa56f48c408782c22d0eea1f8473aee
const connectDB = async () => {
try {
await mongoose.connect(uri)
Expand Down Expand Up @@ -316,4 +312,4 @@ app.post('/likePost', (req, res) => {

app.listen(port, () => {
console.log(`Server is running on port: ${port}`)
})
})

0 comments on commit ef09939

Please sign in to comment.