hide sign up with inviteOnlySignup=true

This commit is contained in:
Maidul Islam
2023-07-31 23:54:04 -04:00
parent 4b1a27b301
commit 1d71864092
3 changed files with 15 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import express, { Request, Response } from "express";
import { getSecretScanningGitAppId, getSecretScanningPrivateKey, getSecretScanningWebhookSecret, getSmtpConfigured } from "../../config";
import { getInviteOnlySignup, getSecretScanningGitAppId, getSecretScanningPrivateKey, getSecretScanningWebhookSecret, getSmtpConfigured } from "../../config";
const router = express.Router();
@@ -11,6 +11,7 @@ router.get(
message: "Ok",
emailConfigured: await getSmtpConfigured(),
secretScanningConfigured: await getSecretScanningGitAppId() && await getSecretScanningWebhookSecret() && await getSecretScanningPrivateKey(),
inviteOnlySignup: await getInviteOnlySignup()
})
}
);