Subversion Repositories SmartDukaan

Rev

Rev 22384 | Rev 22927 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22384 Rev 22551
Line 23... Line 23...
23
@Controller
23
@Controller
24
@Transactional
24
@Transactional
25
public class FofoController {
25
public class FofoController {
26
	
26
	
27
	private static final Logger LOGGER = LoggerFactory.getLogger(FofoController.class);
27
	private static final Logger LOGGER = LoggerFactory.getLogger(FofoController.class);
28
	
-
 
29
 
28
 
30
	@Autowired
29
	@Autowired
31
	Mongo mongoClient;
30
	Mongo mongoClient;
32
	
31
	
33
	@Autowired
32
	@Autowired
34
	FofoDocumentsGenerator generator;
33
	FofoDocumentsGenerator generator;
35
	
34
	
36
	
-
 
37
	@RequestMapping(value = "/fofo", method = RequestMethod.GET)
35
	@RequestMapping(value = "/fofo", method = RequestMethod.GET)
38
	public String getAll(HttpServletRequest request, Model model) throws Exception {
36
	public String getAll(HttpServletRequest request, Model model) throws Exception {
39
		model.addAttribute("fofoForms", mongoClient.getFofoForms(0, 50));
37
		model.addAttribute("fofoForms", mongoClient.getFofoForms(0, 50));
40
		return "fofo-index";
38
		return "fofo-index";
41
	}
39
	}