Created
December 3, 2021 04:13
-
-
Save hieptl/bb83045421b58cdd81629a3cff5e07e2 to your computer and use it in GitHub Desktop.
meetings.js - server - get meeting by id - Zoom Clone
This file contains hidden or 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
| 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