From 4950998135faaa1f7d4e9eece6c1258dac018d28 Mon Sep 17 00:00:00 2001 From: Ting Zuge Date: Wed, 22 Jan 2025 15:41:11 -0700 Subject: [PATCH] fix(directory-service): include configuration handler on route --- apps/directory-service/src/main.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/directory-service/src/main.ts b/apps/directory-service/src/main.ts index 244dd7792..cfb9042e1 100644 --- a/apps/directory-service/src/main.ts +++ b/apps/directory-service/src/main.ts @@ -60,6 +60,7 @@ const initializeApp = async (): Promise => { tenantService, tokenProvider, configurationService, + configurationHandler, clearCached, metricsHandler, tenantHandler, @@ -157,7 +158,14 @@ const initializeApp = async (): Promise => { const queueService = await createDirectoryQueueService({ ...environment, logger }); app.use('/directory', metricsHandler, passport.authenticate(['core', 'tenant', 'anonymous'], { session: false })); - app.use('/resource', metricsHandler, passport.authenticate(['core', 'tenant'], { session: false }), tenantHandler); + app.use( + '/resource', + metricsHandler, + passport.authenticate(['core', 'tenant'], { session: false }), + tenantHandler, + configurationHandler + ); + applyDirectoryMiddleware(app, { ...repositories, serviceId,