mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-28 00:06:53 +01:00
2e367b3a04
* refactor: simplify useApiGetter cache keys * refactor: simplify basePath helpers * refactor: add UNLEASH_BASE_PATH frontend env var * refactor: make sure AnnouncerElement does not affect the layout * refactor: draw texture image above footer * refactor: extract domain check helpers * refactor: fix a few ts-expect-errors * feat: add trial expiration warning banner * refactor: fix IInstanceStatus interface prefix * refactor: use ConditionallyRender in InstanceStatus * refactor: simplify env helper functions * refactor: use FC in InstanceStatus * refactor: warn about expired trials * refactor: fix eslint warnings * refactor: disable banner outside of localhost * refactor: use new instance state field name
13 lines
281 B
TypeScript
13 lines
281 B
TypeScript
import { Configuration, AdminApi } from 'openapi';
|
|
import { basePath } from 'utils/formatPath';
|
|
|
|
const createAdminApi = (): AdminApi => {
|
|
return new AdminApi(
|
|
new Configuration({
|
|
basePath,
|
|
})
|
|
);
|
|
};
|
|
|
|
export const openApiAdmin = createAdminApi();
|