GIF89a
import { Router } from "express";
import { isLoggedIn } from "../../middleware/authMiddleware.js";
import { buyContent, getContents, getPurchasedContents } from "./content.controller.js";
const content = Router();
// GET /api/v1/content — filter by ?catId, ?role, ?contentOf, ?id
content.get("/", isLoggedIn, getContents);
content.post("/purchase/:contentId", isLoggedIn, buyContent);
content.get('/purchased-content', isLoggedIn, getPurchasedContents);
export default content;