Skip to content

Commit

Permalink
fix(directory-service): include configuration handler on route
Browse files Browse the repository at this point in the history
  • Loading branch information
tzuge committed Jan 22, 2025
1 parent 7fc73d9 commit 4950998
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/directory-service/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const initializeApp = async (): Promise<express.Application> => {
tenantService,
tokenProvider,
configurationService,
configurationHandler,
clearCached,
metricsHandler,
tenantHandler,
Expand Down Expand Up @@ -157,7 +158,14 @@ const initializeApp = async (): Promise<express.Application> => {
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,
Expand Down

0 comments on commit 4950998

Please sign in to comment.