mirror of https://github.com/portainer/portainer
12 lines
390 B
TypeScript
12 lines
390 B
TypeScript
import { EnvironmentId } from '@/react/portainer/environments/types';
|
|
|
|
import { queryKeys as dockerQueryKeys } from '../../queries/utils';
|
|
|
|
export const queryKeys = {
|
|
list: (environmentId: EnvironmentId) =>
|
|
[...dockerQueryKeys.root(environmentId), 'services'] as const,
|
|
|
|
service: (environmentId: EnvironmentId, id: string) =>
|
|
[...queryKeys.list(environmentId), id] as const,
|
|
};
|