|
|
@@ -57,6 +57,9 @@ const middleware = (crowi: any, app: any): void => {
|
|
|
loginRequiredFallback,
|
|
|
);
|
|
|
const accessTokenParser = crowi.accessTokenParser;
|
|
|
+
|
|
|
+ // Use a callback to get excludedPaths at request time, not at server startup.
|
|
|
+ // This ensures config changes are reflected without server restart.
|
|
|
const getExcludedPaths = () => crowi.pageService.getExcludedPathsBySystem();
|
|
|
|
|
|
app.get(
|