Skip to content

Commit

Permalink
Removed superfluous endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
georgweiss committed Sep 26, 2024
1 parent b58f404 commit 37b108d
Showing 1 changed file with 0 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,4 @@ public List<Node> addTag(@RequestBody TagData tagData,
public List<Node> deleteTag(@RequestBody TagData tagData) {
return nodeDAO.deleteTag(tagData);
}

/**
* Removes a {@link Tag} from specified list of target {@link Node}s. The {@link Tag} contained
* in tagData must be non-null, and its name must be non-null and non-empty.
* <p>
* This is exposed as an HTTP POST as the native {@link java.net.http.HttpClient} does not
* support a body in a DELETE request.
*
* @param tagData See {@link TagData}
* @return The list of updated {@link Node}s
*/
@PostMapping("/delete-tags")
@PreAuthorize("@authorizationHelper.mayAddOrDeleteTag(#tagData, #root)")
public List<Node> deleteTagsAsPost(@RequestBody TagData tagData) {
return nodeDAO.deleteTag(tagData);
}
}

0 comments on commit 37b108d

Please sign in to comment.