mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-27 02:14:50 +10:00
fixes #2552, implement FLAG_DISABLE_SIGNUPS and FLAG_DISABLE_EMAIL_AUTH
This commit is contained in:
@@ -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()),
|
||||
};
|
||||
Reference in New Issue
Block a user