Skip to content

Instantly share code, notes, and snippets.

@hieptl
Created December 3, 2021 04:13
Show Gist options
  • Select an option

  • Save hieptl/bb83045421b58cdd81629a3cff5e07e2 to your computer and use it in GitHub Desktop.

Select an option

Save hieptl/bb83045421b58cdd81629a3cff5e07e2 to your computer and use it in GitHub Desktop.
meetings.js - server - get meeting by id - Zoom Clone
app.get("/meetings/:id/get", (req, res) => {
const id = req.params.id;
const findMeetingSql = "SELECT * FROM meeting WHERE meeting_uid = ?";
dbConn.query(findMeetingSql, [id], function (error, meeting) {
res.status(200).jsonp(meeting);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment