feat: add profile status service and integrate it into the gateway API context and router

This commit is contained in:
2026-01-03 10:30:59 +00:00
parent 821e18cb53
commit 1988e180c5
5 changed files with 124 additions and 0 deletions
+3
View File
@@ -18,6 +18,7 @@ import { createPostgresUserRepository } from './auth/postgresUserRepository.js';
import { RedisGatewaySessionService } from './auth/redisSessionService.js';
import { createGatewayOrchestrator } from './orchestrator/orchestratorFactory.js';
import { appRouter } from './router.js';
import { RepositoryProfileStatusService } from './lobby/profileStatusService.js';
export const createGatewayApiServer = async () => {
const config = resolveGatewayApiConfigFromEnv();
@@ -51,6 +52,7 @@ export const createGatewayApiServer = async () => {
config,
process.env
);
const profileStatus = new RepositoryProfileStatusService(profiles, orchestrator);
const app = fastify({
logger: true,
@@ -77,6 +79,7 @@ export const createGatewayApiServer = async () => {
publicBaseUrl: config.publicBaseUrl,
profiles,
orchestrator,
profileStatus,
adminToken: config.adminToken,
requestHeaders: req.headers,
}),