import express from "express";
import * as ctrl from "../controllers/teamMember.controller.js";

const router = express.Router();

// POST /api/team-members/seed - Seed hardcoded team members
router.post("/seed", ctrl.seed);

// GET /api/team-members - Get all team members
router.get("/", ctrl.list);

// GET /api/team-members/:id - Get a specific team member by ID
router.get("/:id", ctrl.getById);

// POST /api/team-members - Create a new team member
router.post("/", ctrl.create);

// PUT /api/team-members/:id - Update a team member
router.put("/:id", ctrl.update);

// DELETE /api/team-members/:id - Delete a team member
router.delete("/:id", ctrl.remove);

export default router;

