Skip to content

Commit

Permalink
use nested templates for posts
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardAndress committed Jul 24, 2021
1 parent 328158f commit 95500d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public String index(Model model) {
Iterable<Post> posts = repository.findAll();
model.addAttribute("posts", posts);
model.addAttribute("post", new Post());
return "index";
return "posts/index";
}

@PostMapping("/posts")
Expand Down
File renamed without changes.

0 comments on commit 95500d8

Please sign in to comment.