Skip to content

Commit

Permalink
[BE] Location URI를 프론트 기준으로 변경한다. (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
JINU-CHANG authored Oct 4, 2024
1 parent e944dfd commit 1cc124b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ArticleController(ArticleService articleService) {
public ResponseEntity<Void> createArticle(@AuthRequiredPrincipal User user,
@Valid @RequestBody ArticleCreateRequest request) {
Long id = articleService.createArticle(request);
return ResponseEntity.created(URI.create("articles/" + id)).build();
return ResponseEntity.created(URI.create("/article/" + id)).build();
}

@GetMapping("/articles/{id}")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public ChecklistController(ChecklistManageService checklistManageService, Checkl
public ResponseEntity<Void> createChecklist(@AuthRequiredPrincipal User user,
@Valid @RequestBody ChecklistRequest checklistRequest) {
long checklistId = checklistManageService.createChecklist(user, checklistRequest);
return ResponseEntity.created(URI.create("/checklists/" + checklistId)).build();
return ResponseEntity.created(URI.create("/checklist/" + checklistId)).build();
}

@GetMapping("/checklists/{id}")
Expand Down

0 comments on commit 1cc124b

Please sign in to comment.