Skip to content

Commit

Permalink
trackings be - fix delete
Browse files Browse the repository at this point in the history
  • Loading branch information
guidomarchini committed May 16, 2020
1 parent 4529958 commit bc894db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class TrackingController constructor(

@DeleteMapping("/trackings/{id}")
@ResponseStatus(HttpStatus.NO_CONTENT)
fun deleteTracking(@RequestParam id: Int): Unit {
fun deleteTracking(@PathVariable id: Int): Unit {
logger.info("Deleting Tracking with id: $id")
trackingService.delete(id)
}
Expand Down

0 comments on commit bc894db

Please sign in to comment.