From adda2816c8496177f3602c2ad73cde8de4f24969 Mon Sep 17 00:00:00 2001 From: Kaity A Date: Sun, 14 May 2023 00:18:30 +1000 Subject: [PATCH] Update meta to return experimentals --- packages/backend/src/server/api/endpoints/admin/meta.ts | 1 + packages/backend/src/server/api/endpoints/meta.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/packages/backend/src/server/api/endpoints/admin/meta.ts b/packages/backend/src/server/api/endpoints/admin/meta.ts index b83579cd3f..8030211527 100644 --- a/packages/backend/src/server/api/endpoints/admin/meta.ts +++ b/packages/backend/src/server/api/endpoints/admin/meta.ts @@ -591,5 +591,6 @@ export default define(meta, paramDef, async (ps, me) => { libreTranslateApiKey: instance.libreTranslateApiKey, enableIpLogging: instance.enableIpLogging, enableActiveEmailValidation: instance.enableActiveEmailValidation, + experimentalFeatures: instance.experimentalFeatures, }; }); diff --git a/packages/backend/src/server/api/endpoints/meta.ts b/packages/backend/src/server/api/endpoints/meta.ts index 23989750fc..64f25e2ba0 100644 --- a/packages/backend/src/server/api/endpoints/meta.ts +++ b/packages/backend/src/server/api/endpoints/meta.ts @@ -525,6 +525,8 @@ export default define(meta, paramDef, async (ps, me) => { serviceWorker: instance.enableServiceWorker, miauth: true, }; + + response.experimentalFeatures = instance.experimentalFeatures; } return response;