// 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 javax.servlet.http.HttpServletRequest;
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.comments;




/**
 * Handles requests for the "add a comment" page. This is handled
 * by our UI stack without any additional context.
 */

@Controller
public class CommentController {

    @RequestMapping(value = "/add", method = GET)
    public String index(Model model, HttpServletRequest request) {
// 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/comments/CommentController.java
import javax.servlet.http.HttpServletRequest;
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.comments;




/**
 * Handles requests for the "add a comment" page. This is handled
 * by our UI stack without any additional context.
 */

@Controller
public class CommentController {

    @RequestMapping(value = "/add", method = GET)
    public String index(Model model, HttpServletRequest request) {
		populateModel(model, request);