Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
21615 kshitij.so 1
package com.spice.profitmandi.web.controller;
2
 
22073 ashik.ali 3
import java.util.Properties;
4
 
21615 kshitij.so 5
import org.slf4j.Logger;
6
import org.slf4j.LoggerFactory;
22073 ashik.ali 7
import org.springframework.core.io.Resource;
21615 kshitij.so 8
import org.springframework.stereotype.Controller;
22073 ashik.ali 9
import org.springframework.ui.Model;
21615 kshitij.so 10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMethod;
12
 
22073 ashik.ali 13
import com.spice.profitmandi.web.config.AppConfig;
14
 
21615 kshitij.so 15
@Controller
16
public class DashboardController {
17
 
18
	private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
19
 
20
	@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
22073 ashik.ali 21
	public String dashboard(Model model) throws Exception{
22
		Resource resource = AppConfig.getResource();
23
		Properties properties = new Properties();
24
		properties.load(resource.getInputStream());
25
		model.addAttribute("appContextPath", properties.getProperty("app.context.path"));
21615 kshitij.so 26
		return "dashboard";
27
	}
28
 
29
}