Skip to content

Commit

Permalink
test: test rate movie endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
yevheniiairapetian committed Jun 1, 2024
1 parent f2f0002 commit 08f5141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
},
Expand Down

0 comments on commit 08f5141

Please sign in to comment.