Fix sitemap.html show error

pull/167/head^2
johnniang 2019-05-21 18:03:32 +08:00 committed by John Niang
parent c5bd98caf4
commit 72831103a4
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ public class ContentFeedController {
* @param model model * @param model model
* @return String * @return String
*/ */
@GetMapping(value = "sitemap.html", produces = MediaType.TEXT_PLAIN_VALUE) @GetMapping(value = "sitemap.html")
public String sitemapHtml(Model model, public String sitemapHtml(Model model,
@PageableDefault(size = Integer.MAX_VALUE, sort = "createTime", direction = DESC) Pageable pageable) { @PageableDefault(size = Integer.MAX_VALUE, sort = "createTime", direction = DESC) Pageable pageable) {
model.addAttribute("posts", buildPosts(pageable)); model.addAttribute("posts", buildPosts(pageable));