Subversion Repositories SmartDukaan

Rev

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

package com.spice.profitmandi.web.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class DashboardController {

        private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
        
        @Value("${app.context.path}")
        private String appContextPath;
        
        @RequestMapping(value = "/dashboard", method = RequestMethod.GET)
        public String dashboard(Model model) throws Exception{
                model.addAttribute("appContextPath", appContextPath);
                return "dashboard";
        }
        
}