refactor content fetching and embedding processes for improved concurrency and error handling

This commit is contained in:
ImBenji
2026-04-19 23:21:29 +01:00
parent 6bf3a9282f
commit 37d9dfb083
8 changed files with 176 additions and 10 deletions
+2
View File
@@ -2,6 +2,7 @@ const Fastify = require('fastify');
const cors = require('@fastify/cors');
const articleRoutes = require('./src/routes/articles');
const statusRoutes = require('./src/routes/status');
const sourcesRoutes = require('./src/routes/sources');
const config = require('./src/config');
const { startScheduler } = require('./src/scheduler');
@@ -10,6 +11,7 @@ const app = Fastify({ logger: true });
app.register(cors, { origin: true });
app.register(articleRoutes);
app.register(statusRoutes);
app.register(sourcesRoutes);
app.get('/', async () => ({ ok: true }));