package com.handong.smartservice.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


@Controller
public class IndexController {
	private final Logger logger = LoggerFactory.getLogger(this.getClass());

	@RequestMapping(value = {"/", "/index"}, method = RequestMethod.GET)
	public String index(HttpServletRequest request, HttpServletResponse response) {
		//logger.info("[TRACE] session : " + AppGlobal.sessionToMap(session).toString());
		
		//if (session.getAttribute("account_id") == null) {
        //    session.invalidate();
        //    return "redirect:/login";
		//}

		return "/index";
	}	
}
