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
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 6m21s
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user