From 08f514193976e53e0be695f3b23dd6dc748be2de Mon Sep 17 00:00:00 2001 From: Yevhenii Airapetian Date: Sat, 1 Jun 2024 22:14:56 +0200 Subject: [PATCH] test: test rate movie endpoint --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e26fdd5..060dec6 100644 --- a/index.js +++ b/index.js @@ -138,7 +138,7 @@ app.get('/movies/:movieTitle', passport.authenticate('jwt', { session: false }), }); }); -app.post('/movies/:movieID/:R3playRating', passport.authenticate('jwt', { session: false }), async (req, res) => { +app.post('/movies/:movieID/R3playRating', passport.authenticate('jwt', { session: false }), async (req, res) => { await Movies.findOneAndUpdate({ Title: req.params.movieID}, { $push: { R3playRating: req.params.R3playRating }, },