mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(dashboard): use faster proxy request [EE-5160] (#8693)
Co-authored-by: testa113 <testa113>
This commit is contained in:
parent
f6e8b25cf3
commit
3636ac5c26
2 changed files with 10 additions and 1 deletions
|
@ -3,6 +3,7 @@ import { EnvironmentId } from '@/react/portainer/environments/types';
|
|||
|
||||
import { Namespaces, SelfSubjectAccessReviewResponse } from './types';
|
||||
|
||||
// getNamespace is used to retrieve a namespace using the Portainer backend
|
||||
export async function getNamespace(
|
||||
environmentId: EnvironmentId,
|
||||
namespace: string
|
||||
|
@ -17,6 +18,7 @@ export async function getNamespace(
|
|||
}
|
||||
}
|
||||
|
||||
// getNamespaces is used to retrieve namespaces using the Portainer backend with caching
|
||||
export async function getNamespaces(environmentId: EnvironmentId) {
|
||||
try {
|
||||
const { data: namespaces } = await axios.get<Namespaces>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue