fixes #2552, implement FLAG_DISABLE_SIGNUPS and FLAG_DISABLE_EMAIL_AUTH

This commit is contained in:
Amruth Pillai
2026-01-23 01:45:42 +01:00
parent 6db9fee823
commit 11cbeb27f8
69 changed files with 2098 additions and 2029 deletions
+14
View File
@@ -0,0 +1,14 @@
import { publicProcedure } from "../context";
import { type FeatureFlags, flagsService } from "../services/flags";
export const flagsRouter = {
get: publicProcedure
.route({
method: "GET",
path: "/flags",
tags: ["Feature Flags"],
summary: "Get feature flags",
description: "Returns the current feature flags for this instance.",
})
.handler((): FeatureFlags => flagsService.getFlags()),
};