//package com.forum.controller;
//
//import com.forum.entity.Forum;
//import com.forum.service.ForumService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.ui.Model;
//import org.springframework.web.bind.annotation.GetMapping;
//
//import java.util.List;
//import java.util.Map;
//
//@Controller
//public class ArchiveShowController {
//
//    @Autowired
//    private ForumService forumService;
//
//    @GetMapping("/archives")
//    public String archives(Model model) {
//        Map<String, List<Forum>> forums = forumService.archiveForum();
//        model.addAttribute("archiveMap", forums);
//        model.addAttribute("forumCount", forumService.countForum());
//
//
//        return "archives";
//    }
//}
