| 21615 |
kshitij.so |
1 |
package com.spice.profitmandi.web.controller;
|
|
|
2 |
|
| 22086 |
amit.gupta |
3 |
import javax.servlet.http.HttpServletRequest;
|
|
|
4 |
|
| 21615 |
kshitij.so |
5 |
import org.slf4j.Logger;
|
|
|
6 |
import org.slf4j.LoggerFactory;
|
|
|
7 |
import org.springframework.stereotype.Controller;
|
| 22073 |
ashik.ali |
8 |
import org.springframework.ui.Model;
|
| 21615 |
kshitij.so |
9 |
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
10 |
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
11 |
|
|
|
12 |
@Controller
|
|
|
13 |
public class DashboardController {
|
|
|
14 |
|
|
|
15 |
private static final Logger LOGGER = LoggerFactory.getLogger(DashboardController.class);
|
|
|
16 |
|
|
|
17 |
@RequestMapping(value = "/dashboard", method = RequestMethod.GET)
|
| 22086 |
amit.gupta |
18 |
public String dashboard(HttpServletRequest request, Model model) throws Exception{
|
|
|
19 |
model.addAttribute("appContextPath", request.getContextPath());
|
| 21615 |
kshitij.so |
20 |
return "dashboard";
|
|
|
21 |
}
|
|
|
22 |
|
| 22354 |
ashik.ali |
23 |
@RequestMapping(value = "/contactUs", method = RequestMethod.GET)
|
|
|
24 |
public String contactUs(HttpServletRequest request, Model model) throws Exception{
|
|
|
25 |
model.addAttribute("appContextPath", request.getContextPath());
|
|
|
26 |
return "contact-us";
|
|
|
27 |
}
|
|
|
28 |
|
| 21615 |
kshitij.so |
29 |
}
|