Skip to content

Commit

Permalink
#61 - 게시글 컨트롤러의 해시태그 기능 변경점 반영
Browse files Browse the repository at this point in the history
이 정보는 뷰에서 해시태그에 링크를 달 때
게시글의 검색 필터 정보로 쓰기 위해 필요하다.

* TODO: `searchTypes`에서 재활용할 수 있는 데이터이므로 더 나은 방법이 있을지 고민해보자.

테스트의 변화는 #53의 1801c6 에서 도메인 변경을 하면서 이미 구상하여 작업하였음
  • Loading branch information
lmw7414 committed Jan 8, 2023
1 parent 418e989 commit d2a0097
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public String articles(
map.addAttribute("articles", articles);
map.addAttribute("paginationBarNumbers", barNumbers);
map.addAttribute("searchTypes", SearchType.values());
map.addAttribute("searchTypeHashtag", SearchType.HASHTAG);

return "articles/index";
}
Expand All @@ -53,6 +54,7 @@ public String article(@PathVariable Long articleId, ModelMap map) {
map.addAttribute("article", article);
map.addAttribute("articleComments", article.articleCommentsResponse());
map.addAttribute("totalCount", articleService.getArticleCount());
map.addAttribute("searchTypeHashtag", SearchType.HASHTAG);

return "articles/detail";
}
Expand Down

0 comments on commit d2a0097

Please sign in to comment.