diff options
author | 2020-04-29 19:37:09 +0000 | |
---|---|---|
committer | 2020-04-29 19:37:09 +0000 | |
commit | 1ecdd01fb14464b94aaa208f34af3ca078dc31da (patch) | |
tree | f1298b9cce50c1a77c56823f5385b9b9541d5c41 /ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java | |
parent | d4e9fbf93c206c61c25e9e20b23c65bda335f87b (diff) | |
parent | d12de53c04b0ededda7a2811819e744d15d38864 (diff) |
Merge "added appropriate annotation"
Diffstat (limited to 'ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java')
-rw-r--r-- | ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java index 138a805d..3368ce49 100644 --- a/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java +++ b/ecomp-sdk/epsdk-app-common/src/main/java/org/onap/portalapp/controller/core/AngularAdminController.java @@ -43,6 +43,7 @@ import java.util.Map; import org.onap.portalsdk.core.controller.RestrictedBaseController; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.servlet.ModelAndView; @@ -50,13 +51,13 @@ import org.springframework.web.servlet.ModelAndView; @RequestMapping("/") public class AngularAdminController extends RestrictedBaseController{ - @RequestMapping(value = {"/userProfile" }, method = RequestMethod.GET) + @GetMapping(value = {"/userProfile" }) public ModelAndView view() { Map<String, Object> model = new HashMap<>(); return new ModelAndView("user_profile_list","model", model); } - @RequestMapping(value = {"/admin" }, method = RequestMethod.GET) + @GetMapping(value = {"/admin" }) public ModelAndView adminView() { Map<String, Object> model = new HashMap<>(); return new ModelAndView(getViewName(),"model", model); |