diff --git a/src/main/kotlin/controller/api/TagApiController.kt b/src/main/kotlin/controller/api/TagApiController.kt index 406fd85..0cd5369 100644 --- a/src/main/kotlin/controller/api/TagApiController.kt +++ b/src/main/kotlin/controller/api/TagApiController.kt @@ -33,7 +33,7 @@ fun getAudioList(@PathVariable("slug") slug: String): ResponseEntity = ResponseEntity.ok(tagService.getAudioListByTagSlug(slug)) - @PostMapping("{slug}") + @PutMapping("{slug}") fun updateTag( @PathVariable("slug") slug: String, @Valid @RequestBody request: TagRequest @@ -42,7 +42,7 @@ return ResponseEntity.ok(null) } - @PutMapping("audio/{slug}") + @PostMapping("audio/{slug}") fun addAudioList( @PathVariable("slug") slug: String, @Valid @RequestBody request: TagAudioRequest