refactor content fetching and embedding processes for improved concurrency and error handling
This commit is contained in:
@@ -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 }));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user