const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
const require_controllers_audit_controller = require('../controllers/audit.controller.cjs');
let express = require("express");
express = require_rolldown_runtime.__toESM(express);

//#region src/routes/audit.routes.ts
const auditRouter = (0, express.Router)();
const auditRoute = "/api/audit";
const baseURL = () => `${process.env.BACKEND_URL}${auditRoute}`;
const getAuditRoutes = () => ({
	createAudit: {
		urlModel: "/",
		url: baseURL(),
		method: "POST"
	},
	getAudits: {
		urlModel: "/",
		url: baseURL(),
		method: "GET"
	},
	getAuditById: {
		urlModel: "/:auditId",
		url: ({ auditId }) => `${baseURL()}/${auditId}`,
		method: "GET"
	}
});
auditRouter.post(getAuditRoutes().createAudit.urlModel, require_controllers_audit_controller.createAudit);
auditRouter.get(getAuditRoutes().getAudits.urlModel, require_controllers_audit_controller.getAudits);
auditRouter.get(getAuditRoutes().getAuditById.urlModel, require_controllers_audit_controller.getAuditById);

//#endregion
exports.auditRoute = auditRoute;
exports.auditRouter = auditRouter;
exports.getAuditRoutes = getAuditRoutes;
//# sourceMappingURL=audit.routes.cjs.map