mirror of
https://github.com/jdalrymple/gitbeaker.git
synced 2026-01-25 16:04:01 +00:00
18 lines
481 B
JavaScript
18 lines
481 B
JavaScript
import { BaseService, RequestHelper } from '../infrastructure';
|
|
|
|
class Deployments extends BaseService {
|
|
all(projectId, options) {
|
|
const pId = encodeURIComponent(projectId);
|
|
|
|
return RequestHelper.get(this, `projects/${pId}/deployments`, options);
|
|
}
|
|
|
|
show(projectId, deploymentId) {
|
|
const [pId, dId] = [projectId, deploymentId].map(encodeURIComponent);
|
|
|
|
return RequestHelper.post(this, `projects/${pId}/deployments/${dId}`);
|
|
}
|
|
}
|
|
|
|
export default Deployments;
|