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()),
};
+2
View File
@@ -1,5 +1,6 @@
import { aiRouter } from "./ai";
import { authRouter } from "./auth";
import { flagsRouter } from "./flags";
import { printerRouter } from "./printer";
import { resumeRouter } from "./resume";
import { statisticsRouter } from "./statistics";
@@ -8,6 +9,7 @@ import { storageRouter } from "./storage";
export default {
ai: aiRouter,
auth: authRouter,
flags: flagsRouter,
resume: resumeRouter,
storage: storageRouter,
printer: printerRouter,