feat(b2b): Add batch processing, industry selection, optimized PDF export, and update docs

This commit is contained in:
2025-12-23 12:50:10 +00:00
parent 46bf8b0b48
commit fc79f70e9c
5 changed files with 391 additions and 18 deletions

View File

@@ -101,7 +101,7 @@ app.post('/api/start-generation', (req, res) => {
// API-Endpunkt, um den nächsten Schritt zu generieren
app.post('/api/next-step', (req, res) => {
console.log(`[${new Date().toISOString()}] HIT: /api/next-step`);
const { analysisData, language, channels, generationStep } = req.body;
const { analysisData, language, channels, generationStep, focusIndustry } = req.body;
if (!analysisData || !language || generationStep === undefined) {
return res.status(400).json({ error: 'Missing required parameters: analysisData, language, generationStep.' });
@@ -128,6 +128,10 @@ app.post('/api/next-step', (req, res) => {
if (channels && Array.isArray(channels)) {
args.push('--channels', channels.join(','));
}
if (focusIndustry) {
args.push('--focus_industry', focusIndustry);
}
// Da die runPythonScript-Funktion res behandelt, fügen wir hier die Bereinigung hinzu
const originalJson = res.json.bind(res);