diff options
Diffstat (limited to 'app/assets/javascripts/api')
-rw-r--r-- | app/assets/javascripts/api/projects_api.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app/assets/javascripts/api/projects_api.js b/app/assets/javascripts/api/projects_api.js index 7666f558eb5..667aa878261 100644 --- a/app/assets/javascripts/api/projects_api.js +++ b/app/assets/javascripts/api/projects_api.js @@ -2,10 +2,9 @@ import { DEFAULT_PER_PAGE } from '~/api'; import axios from '../lib/utils/axios_utils'; import { buildApiUrl } from './api_utils'; -export * from './alert_management_alerts_api'; - const PROJECTS_PATH = '/api/:version/projects.json'; const PROJECT_IMPORT_MEMBERS_PATH = '/api/:version/projects/:id/import_project_members/:project_id'; +const PROJECT_REPOSITORY_SIZE_PATH = '/api/:version/projects/:id/repository_size'; export function getProjects(query, options, callback = () => {}) { const url = buildApiUrl(PROJECTS_PATH); @@ -35,3 +34,11 @@ export function importProjectMembers(sourceId, targetId) { .replace(':project_id', targetId); return axios.post(url); } + +export function updateRepositorySize(projectPath) { + const url = buildApiUrl(PROJECT_REPOSITORY_SIZE_PATH).replace( + ':id', + encodeURIComponent(projectPath), + ); + return axios.post(url); +} |