mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 15:28:25 +00:00
Bring back nock route
This commit is contained in:
@@ -8,7 +8,7 @@ import { registerSecretSyncRouter, SECRET_SYNC_REGISTER_ROUTER_MAP } from "@app/
|
|||||||
|
|
||||||
import { registerAdminRouter } from "./admin-router";
|
import { registerAdminRouter } from "./admin-router";
|
||||||
import { registerAuthRoutes } from "./auth-router";
|
import { registerAuthRoutes } from "./auth-router";
|
||||||
// import { registerBddNockRouter } from "./bdd-nock-router";
|
import { registerBddNockRouter } from "./bdd-nock-router";
|
||||||
import { registerProjectBotRouter } from "./bot-router";
|
import { registerProjectBotRouter } from "./bot-router";
|
||||||
import { registerCaRouter } from "./certificate-authority-router";
|
import { registerCaRouter } from "./certificate-authority-router";
|
||||||
import { CERTIFICATE_AUTHORITY_REGISTER_ROUTER_MAP } from "./certificate-authority-routers";
|
import { CERTIFICATE_AUTHORITY_REGISTER_ROUTER_MAP } from "./certificate-authority-routers";
|
||||||
@@ -71,6 +71,7 @@ import { registerUserEngagementRouter } from "./user-engagement-router";
|
|||||||
import { registerUserRouter } from "./user-router";
|
import { registerUserRouter } from "./user-router";
|
||||||
import { registerWebhookRouter } from "./webhook-router";
|
import { registerWebhookRouter } from "./webhook-router";
|
||||||
import { registerWorkflowIntegrationRouter } from "./workflow-integration-router";
|
import { registerWorkflowIntegrationRouter } from "./workflow-integration-router";
|
||||||
|
import { getConfig } from "@app/lib/config/env";
|
||||||
|
|
||||||
export const registerV1Routes = async (server: FastifyZodProvider) => {
|
export const registerV1Routes = async (server: FastifyZodProvider) => {
|
||||||
await server.register(registerSsoRouter, { prefix: "/sso" });
|
await server.register(registerSsoRouter, { prefix: "/sso" });
|
||||||
@@ -241,7 +242,7 @@ export const registerV1Routes = async (server: FastifyZodProvider) => {
|
|||||||
|
|
||||||
// Note: This is a special route for BDD tests. It's only available in development mode and only for BDD tests.
|
// Note: This is a special route for BDD tests. It's only available in development mode and only for BDD tests.
|
||||||
// This route should NEVER BE ENABLED IN PRODUCTION!
|
// This route should NEVER BE ENABLED IN PRODUCTION!
|
||||||
// if (getConfig().isBddNockApiEnabled) {
|
if (getConfig().isBddNockApiEnabled) {
|
||||||
// await server.register(registerBddNockRouter, { prefix: "/bdd-nock" });
|
await server.register(registerBddNockRouter, { prefix: "/bdd-nock" });
|
||||||
// }
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user