Add Watch Buddies feature

- Created WatchBuddy model
- M:N junctions to EntrySeen/EpisodeSeen
  and Media relation for profile pictures
- Full CRUD + search + profile picture upload
- WatchBuddySelect multi-select with search and inline create, replaced
  all seen_with text inputs
- WatchBuddiesPage (grid) and WatchBuddyProfilePage (edit form,
  icon-based contacts, poster-grid watch history, monthly timeline)
This commit is contained in:
X4Lo committed 2026-06-25 03:11:14 +01:00
1 parent 4313a794ce
commit e82b905886
28 files changed
+6813 -374

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
const express = require("express");
const router = express.Router();
const multer = require("multer");
const upload = multer({ dest: require("os").tmpdir() });
const ctrl = require("../controllers/watchBuddyController");
router.get("/search", ctrl.search);
router.get("/:id/history", ctrl.getHistory);
router.get("/:id", ctrl.getById);
router.post("/", ctrl.create);
router.put("/:id", ctrl.update);
router.delete("/:id", ctrl.remove);
router.post(
"/:id/profile-picture",
upload.single("file"),
ctrl.uploadProfilePicture,
);
module.exports = router;