refactor: remove KI-Agent chat widget and backend route

This commit is contained in:
Ronny
2026-04-11 18:54:50 +02:00
parent 69585cfac1
commit 62aeda1395
14 changed files with 371 additions and 1381 deletions
-12
View File
@@ -14,7 +14,6 @@ import leaderboardRouter from './routes/leaderboard';
import adminRouter from './routes/admin';
import profileRouter from './routes/profile';
import devRouter from './routes/dev';
import agentRouter from './routes/agent';
const app = express();
const PORT = parseInt(process.env.PORT ?? '3001');
@@ -96,16 +95,6 @@ app.use(
})
);
// Rate limit für Agent-Chat (Claude API Calls sind kostenpflichtig)
app.use(
'/api/agent',
rateLimit({
windowMs: 60 * 1000, // 1 Minute
max: 10, // 10 Chat-Nachrichten pro User/Minute
message: { error: 'Too many agent requests, bitte kurz warten.' },
})
);
// ============================================================
// Health Check (ohne Auth für Railway/Render/Uptime-Monitoring)
// ============================================================
@@ -137,7 +126,6 @@ app.use('/api/tips', tipsRouter);
app.use('/api/leaderboard', leaderboardRouter);
app.use('/api/admin', adminRouter);
app.use('/api/profile', profileRouter);
app.use('/api/agent', agentRouter);
if (process.env.NODE_ENV === 'development') {
app.use('/api/dev', devRouter);
}