mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
refactor(environments): remove endpoints cache [DTD-100] (#6408)
This commit is contained in:
parent
9ef2e27aae
commit
37d4a80769
51 changed files with 155 additions and 353 deletions
10
app/docker/services/ping.ts
Normal file
10
app/docker/services/ping.ts
Normal file
|
@ -0,0 +1,10 @@
|
|||
import axios, { parseAxiosError } from '@/portainer/services/axios';
|
||||
import { EnvironmentId } from '@/react/portainer/environments/types';
|
||||
|
||||
export async function ping(environmentId: EnvironmentId) {
|
||||
try {
|
||||
await axios.get(`/endpoints/${environmentId}/docker/_ping`);
|
||||
} catch (error) {
|
||||
throw parseAxiosError(error as Error);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue