cswork / OAOpen practice workspace

AmazonOA #7

MovieDB(MERN): User Watchlist

Estimated MediumNon-algorithmicStatement and editorial — judging is being prepared

Topics (AI-labelled)SimulationHashing

修 backend, 让 watchlist add / list / remove 工作.

涉及端点:

  • GET /api/watchlist/ (列出当前用户全部)
  • GET /api/watchlist/check/:movieId
  • POST /api/watchlist/add (rate limit 10 ops / 2 min)
  • DELETE /api/watchlist/remove/:movieId

考点: Mongoose schema relation (User.watchlist: [ObjectId]), req.user from JWT, populate('movieId').


Editorial

Loading solution…