Subversion Repositories SmartDukaan

Rev

Rev 21560 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.controller;

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

@Controller
public class LoginController {

        @RequestMapping(value = "/login", method = RequestMethod.GET)
        public String init(@ModelAttribute("model") ModelMap model) {
                return "login";
        }
        
        @RequestMapping(value = "/login", method = RequestMethod.POST)
        public String indexPage(){
                return "index";
        }
}