mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +10:00
📦 v5.0.7 - Changelog: https://docs.rxresu.me/changelog (#2696)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import z from "zod";
|
||||
import { publicProcedure } from "../context";
|
||||
import { type FeatureFlags, flagsService } from "../services/flags";
|
||||
|
||||
@@ -7,8 +8,17 @@ export const flagsRouter = {
|
||||
method: "GET",
|
||||
path: "/flags",
|
||||
tags: ["Feature Flags"],
|
||||
operationId: "getFeatureFlags",
|
||||
summary: "Get feature flags",
|
||||
description: "Returns the current feature flags for this instance.",
|
||||
description:
|
||||
"Returns the current feature flags for this Reactive Resume instance. Feature flags control instance-wide settings such as whether new user signups or email-based authentication are disabled. No authentication required.",
|
||||
successDescription: "The current feature flags for this instance.",
|
||||
})
|
||||
.output(
|
||||
z.object({
|
||||
disableSignups: z.boolean().describe("Whether new user signups are disabled on this instance."),
|
||||
disableEmailAuth: z.boolean().describe("Whether email-based authentication is disabled on this instance."),
|
||||
}),
|
||||
)
|
||||
.handler((): FeatureFlags => flagsService.getFlags()),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user