mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2026-07-26 01:44:53 +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()),
|
||||
};
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user