Skip to content

Commit

Permalink
[JT-38] feat: 상태 코드 201로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
kmebin committed Sep 5, 2023
1 parent d40ad5a commit c31a0fe
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
package com.devtoon.jtoon.webtoon.presentation;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

import com.devtoon.jtoon.webtoon.application.WebtoonService;
Expand All @@ -19,6 +21,7 @@ public class WebtoonController {
private final WebtoonService webtoonService;

@PostMapping("/{webtoonId}")
@ResponseStatus(HttpStatus.CREATED)
public void createEpisode(@PathVariable Long webtoonId, @Valid CreateEpisodeReq req) {
webtoonService.createEpisode(webtoonId, req);
}
Expand Down

0 comments on commit c31a0fe

Please sign in to comment.