package kr.co.jinwoosi.clfd.clfd.intro.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Controller
public class IntroController {

    @RequestMapping("/clfd/intro.do")
    public String diagnosisMainPage(HttpServletRequest request, HttpServletResponse response, Model model) {
        String userRole = (String) request.getSession().getAttribute("userRole");
        model.addAttribute("loginYn", userRole);
        return "clfd/intro";
    }
}
