Last active
May 30, 2021 05:15
-
-
Save moonformeli/5934da06b59f0e96336232c5e683e61a to your computer and use it in GitHub Desktop.
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
app.get('/movie', async (req, res) => { | |
const { id } = req.query; | |
const movie: MoviePayload = await getMovieById(id); | |
res.json(movie); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment