get single environment

This commit is contained in:
Adam Dehnel 2019-09-15 07:42:31 -05:00 committed by dehnel
parent 5413608185
commit a80bc8035b

View File

@ -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);