Initial
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { camelJob } from '../models/mappers.js';
|
||||
import { createRunPlan, deleteRunPlan, listRunPlans, loadVisibleRunPlan, updateRunPlan } from '../models/runPlanModel.js';
|
||||
import { executeRunPlan } from '../services/powershellRunner.js';
|
||||
import { analyzeRunPlanCompatibility } from '../services/powershellCompatibilityService.js';
|
||||
|
||||
export function index(req, res) {
|
||||
res.json(listRunPlans(req.user.id));
|
||||
@@ -37,3 +38,9 @@ export function execute(req, res) {
|
||||
res.status(400).json({ error: error.message });
|
||||
}
|
||||
}
|
||||
|
||||
export function compatibility(req, res) {
|
||||
const result = analyzeRunPlanCompatibility(req.params.id, req.user.id);
|
||||
if (!result) return res.status(404).json({ error: 'RunPlan not found' });
|
||||
res.json(result);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user