mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
activate Token Controller (#1820)
Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
parent
f4bcee5461
commit
afc82845b5
@ -154,7 +154,11 @@ export const allowedNotebookServerUrls: ReadonlyArray<string> = [];
|
|||||||
export function useNewPortalBackendEndpoint(backendApi: string): boolean {
|
export function useNewPortalBackendEndpoint(backendApi: string): boolean {
|
||||||
// This maps backend APIs to the environments supported by the new backend.
|
// This maps backend APIs to the environments supported by the new backend.
|
||||||
const newBackendApiEnvironmentMap: { [key: string]: string[] } = {
|
const newBackendApiEnvironmentMap: { [key: string]: string[] } = {
|
||||||
[BackendApi.GenerateToken]: [PortalBackendEndpoints.Development],
|
[BackendApi.GenerateToken]: [
|
||||||
|
PortalBackendEndpoints.Development,
|
||||||
|
PortalBackendEndpoints.Mpac,
|
||||||
|
PortalBackendEndpoints.Prod,
|
||||||
|
],
|
||||||
[BackendApi.PortalSettings]: [
|
[BackendApi.PortalSettings]: [
|
||||||
PortalBackendEndpoints.Development,
|
PortalBackendEndpoints.Development,
|
||||||
PortalBackendEndpoints.Mpac,
|
PortalBackendEndpoints.Mpac,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user