import express from "express";
import { listOracFormDetails } from "../controllers/oracFormDetailsListController.js";
import { forkOracFormVersion } from "../controllers/oracFormDetailsForkController.js";
import { createCrudRouter } from "./crudRouter.js";

const router = express.Router();

router.post("/orac_form_details/:form_id/fork", forkOracFormVersion);
router.get("/orac_form_details", listOracFormDetails);
router.use("/orac_form_details", createCrudRouter("orac_form_details", ["form_id"]));

export default router;

