Skip to content

Commit fa4fb35

Browse files
author
Hattinger04
committed
fix bug
1 parent ae0a153 commit fa4fb35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/Hattinger04/course/CourseController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public ResponseEntity<?> patchExercise(@RequestBody JsonNode node) {
303303
* @param json
304304
* @return
305305
*/
306-
@DeleteMapping("/deleteExercise")
306+
@DeleteMapping("/exercises")
307307
@PreAuthorize("hasAuthority('TEACHER')")
308308
public ResponseEntity<?> deleteExercise(@RequestBody JsonNode node) {
309309
Exercise exercise = mapper.convertValue(node.get("exercise"), Exercise.class);

0 commit comments

Comments
 (0)