package cn.brainysoon.superhouse.web;

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

/**
 * Created by brainy on 17-2-17.
 */
@Controller
@RequestMapping("/")
public class IndexController {

    @RequestMapping(method = RequestMethod.GET)
    public String home(Model model) {


        return "login";
    }

    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index() {

        return "main";
    }
}
