Subversion Repositories SmartDukaan

Rev

Rev 21555 | Rev 21561 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
21555 kshitij.so 1
package com.spice.profitmandi.controller;
2
 
3
import org.springframework.stereotype.Controller;
4
import org.springframework.ui.ModelMap;
5
import org.springframework.web.bind.annotation.ModelAttribute;
6
import org.springframework.web.bind.annotation.RequestMapping;
7
import org.springframework.web.bind.annotation.RequestMethod;
8
 
9
@Controller
10
public class LoginController {
11
 
12
	@RequestMapping(value = "/login", method = RequestMethod.GET)
13
	public String init(@ModelAttribute("model") ModelMap model) {
14
		return "login";
15
	}
16
 
17
	@RequestMapping(value = "/login", method = RequestMethod.POST)
18
	public String indexPage(){
19
		return "index";
20
	}
21
}