// 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;
package com.pugnascotia.reactdemo.account;




/**
 * Handles a request for the signin page and renders the
 * app. React Router takes care of showing the right page.
 */

@Controller
public class AccountController {

	@RequestMapping("/signin")
	public String showSignIn(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/account/AccountController.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;

package com.pugnascotia.reactdemo.account;




/**
 * Handles a request for the signin page and renders the
 * app. React Router takes care of showing the right page.
 */

@Controller
public class AccountController {

	@RequestMapping("/signin")
	public String showSignIn(Model model, HttpServletRequest request) {
		populateModel(model, request);