move AI flyer processing to background BullMQ jobs using redis for storage
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m21s

This commit is contained in:
2025-12-02 14:31:01 -08:00
parent a8f650d513
commit 80e2222d20
18 changed files with 1244 additions and 200 deletions

View File

@@ -17,6 +17,7 @@ import aiRouter from './src/routes/ai';
import budgetRouter from './src/routes/budget';
import gamificationRouter from './src/routes/gamification';
import systemRouter from './src/routes/system';
import healthRouter from './src/routes/health';
import { errorHandler } from './src/middleware/errorHandler';
import { startBackgroundJobs } from './src/services/backgroundJobService';
@@ -111,6 +112,8 @@ if ((process.env.JWT_SECRET || 'your_super_secret_jwt_key_change_this') === 'you
// 1. Authentication routes for login, registration, etc.
app.use('/api/auth', authRouter);
// 2. System routes for health checks, etc.
app.use('/api/health', healthRouter);
// 3. System routes for pm2 status, etc.
app.use('/api/system', systemRouter);
// 3. General authenticated user routes.
app.use('/api/users', userRouter);