1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 04:15:28 +02:00

refactor(docker/services): migrate scale form to react [EE-6057] (#10208)

This commit is contained in:
Chaim Lev-Ari 2023-09-04 20:24:41 +01:00 committed by GitHub
parent f7366d9788
commit e82b34b775
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 543 additions and 180 deletions

View file

@ -0,0 +1,21 @@
import { Service } from 'docker-types/generated/1.41';
import { EnvironmentId } from '@/react/portainer/environments/types';
export function urlBuilder(
endpointId: EnvironmentId,
id?: Service['ID'],
action?: string
) {
let url = `/endpoints/${endpointId}/docker/services`;
if (id) {
url += `/${id}`;
}
if (action) {
url += `/${action}`;
}
return url;
}