diff --git a/frontend/app/helpers/path-helper.js b/frontend/app/helpers/path-helper.js index b15b251c60..ef77bd597b 100644 --- a/frontend/app/helpers/path-helper.js +++ b/frontend/app/helpers/path-helper.js @@ -233,12 +233,18 @@ module.exports = function() { apiV3WorkPackagePath: function(workPackageId) { return PathHelper.apiV3 + '/work_packages/' + workPackageId; }, + apiV3WorkPackageFormPath: function(projectIdentifier) { + return PathHelper.apiv3ProjectWorkPackagesPath(projectIdentifier) + '/form'; + }, apiPrioritiesPath: function() { return PathHelper.apiV3 + '/priorities'; }, apiV3ProjectsPath: function(projectIdentifier) { return PathHelper.apiV3 + PathHelper.projectsPath() + '/' + projectIdentifier; }, + apiv3ProjectWorkPackagesPath: function(projectIdentifier) { + return PathHelper.apiV3ProjectsPath(projectIdentifier) + '/work_packages'; + }, apiV3ProjectCategoriesPath: function(projectIdentifier) { return PathHelper.apiV3ProjectsPath(projectIdentifier) + '/categories'; }, diff --git a/frontend/app/services/work-package-service.js b/frontend/app/services/work-package-service.js index b06d83f8bb..1bc88b8592 100644 --- a/frontend/app/services/work-package-service.js +++ b/frontend/app/services/work-package-service.js @@ -88,9 +88,9 @@ module.exports = function($http, links: { update: HALAPIResource .setup(PathHelper - .projectWorkPackagesFormPath(projectIdentifier)), + .apiV3WorkPackageFormPath(projectIdentifier)), updateImmediately: HALAPIResource.setup( - PathHelper.projectWorkPackagesPath(projectIdentifier), + PathHelper.apiv3ProjectWorkPackagesPath(projectIdentifier), { method: 'post' } ) }