From a80bc8035b3d1725dda493e0879f2d055ce9be88 Mon Sep 17 00:00:00 2001 From: Adam Dehnel Date: Sun, 15 Sep 2019 07:42:31 -0500 Subject: [PATCH] get single environment --- src/core/services/Environments.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/services/Environments.ts b/src/core/services/Environments.ts index d7b6cde7..b790c46b 100644 --- a/src/core/services/Environments.ts +++ b/src/core/services/Environments.ts @@ -14,6 +14,12 @@ class Environments extends BaseService { return RequestHelper.get(this, `projects/${pId}/environments`, options); } + show(projectId: ProjectId, environmentId: EnvironmentId, options?: Sudo) { + const [pId, eId] = [projectId, environmentId].map(encodeURIComponent); + + return RequestHelper.get(this, `projects/${pId}/environments/${eId}`, options); + } + create(projectId: ProjectId, options?: BaseRequestOptions) { const pId = encodeURIComponent(projectId);