import express from "express";
import { createCrudRouter } from "./crudRouter.js";

const router = express.Router();

router.use("/locations", createCrudRouter("locations", ["location_id"]));

// Composite-key mapping: department_id + location_id
router.use(
  "/location_departments",
  createCrudRouter("location_departments", ["department_id", "location_id"])
);

export default router;
