1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

Remove signup conditional flag (#2581)

Remove signup flag
This commit is contained in:
sjaanus 2022-12-01 13:12:54 +01:00 committed by GitHub
parent ef6ec4a83b
commit e728ecba69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 133 additions and 5 deletions

View File

@ -25,7 +25,6 @@ import { EnvironmentsController } from './environments';
import ConstraintsController from './constraints';
import PatController from './user/pat';
import { PublicSignupController } from './public-signup';
import { conditionalMiddleware } from '../../middleware/conditional-middleware';
import InstanceAdminController from './instance-admin';
import FavoritesController from './favorites';
@ -111,10 +110,7 @@ class AdminApi extends Controller {
);
this.app.use(
'/invite-link',
conditionalMiddleware(
() => config.flagResolver.isEnabled('publicSignup'),
new PublicSignupController(config, services).router,
),
new PublicSignupController(config, services).router,
);
this.app.use(
'/instance-admin',

View File

@ -4780,6 +4780,138 @@ If the provided project does not exist, the list of events will be empty.",
],
},
},
"/api/admin/invite-link/tokens": {
"get": {
"operationId": "getAllPublicSignupTokens",
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokensSchema",
},
},
},
"description": "publicSignupTokensSchema",
},
},
"summary": "Retrieve all existing public signup tokens",
"tags": [
"Public signup tokens",
],
},
"post": {
"operationId": "createPublicSignupToken",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokenCreateSchema",
},
},
},
"description": "publicSignupTokenCreateSchema",
"required": true,
},
"responses": {
"201": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokenSchema",
},
},
},
"description": "The resource was successfully created.",
"headers": {
"location": {
"description": "The location of the newly created resource.",
"schema": {
"format": "uri",
"type": "string",
},
},
},
},
},
"summary": "Create a public signup token",
"tags": [
"Public signup tokens",
],
},
},
"/api/admin/invite-link/tokens/{token}": {
"get": {
"description": "Get information about a specific token. The \`:token\` part of the URL should be the token's secret.",
"operationId": "getPublicSignupToken",
"parameters": [
{
"in": "path",
"name": "token",
"required": true,
"schema": {
"type": "string",
},
},
],
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokenSchema",
},
},
},
"description": "publicSignupTokenSchema",
},
},
"summary": "Retrieve a token",
"tags": [
"Public signup tokens",
],
},
"put": {
"operationId": "updatePublicSignupToken",
"parameters": [
{
"in": "path",
"name": "token",
"required": true,
"schema": {
"type": "string",
},
},
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokenUpdateSchema",
},
},
},
"description": "publicSignupTokenUpdateSchema",
"required": true,
},
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/publicSignupTokenSchema",
},
},
},
"description": "publicSignupTokenSchema",
},
},
"summary": "Update a public signup token",
"tags": [
"Public signup tokens",
],
},
},
"/api/admin/metrics/applications": {
"get": {
"operationId": "getApplications",