// Path: src/main/java/com/pugnascotia/reactdemo/comments/CommentRepository.java
// public interface CommentRepository {
// 
// 	Iterable<Comment> findAll();
// 
// 	Comment save(Comment comment);
// 
// 	Comment find(Long id);
// }
// 
// Path: src/main/java/com/pugnascotia/reactdemo/utils/State.java
// public static void populateModel(Model model, HttpServletRequest request) {
// 	model.addAttribute("__requestPath", getRequestPath(request));
// 	model.addAttribute("auth", getAuthState(request));
// }


import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import com.pugnascotia.reactdemo.comments.CommentRepository;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import static com.pugnascotia.reactdemo.utils.State.populateModel;
import static org.springframework.web.bind.annotation.RequestMethod.GET;
package com.pugnascotia.reactdemo.home;




/**
 * Renders the home page. It loads all the comments in the repository
 * and passes them to the render context in the same shape that Redux
 * uses.
 */
@Controller
public class HomeController {

// Path: src/main/java/com/pugnascotia/reactdemo/comments/CommentRepository.java
// public interface CommentRepository {
// 
// 	Iterable<Comment> findAll();
// 
// 	Comment save(Comment comment);
// 
// 	Comment find(Long id);
// }
// 
// Path: src/main/java/com/pugnascotia/reactdemo/utils/State.java
// public static void populateModel(Model model, HttpServletRequest request) {
// 	model.addAttribute("__requestPath", getRequestPath(request));
// 	model.addAttribute("auth", getAuthState(request));
// }


// Path: src/main/java/com/pugnascotia/reactdemo/home/HomeController.java
import java.util.HashMap;
import java.util.Map;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import com.pugnascotia.reactdemo.comments.CommentRepository;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import static com.pugnascotia.reactdemo.utils.State.populateModel;
import static org.springframework.web.bind.annotation.RequestMethod.GET;

package com.pugnascotia.reactdemo.home;




/**
 * Renders the home page. It loads all the comments in the repository
 * and passes them to the render context in the same shape that Redux
 * uses.
 */
@Controller
public class HomeController {

    private final CommentRepository repository;