Fix for broken widget-ms build 45/110845/1
authorjz385p <jegadeesh.babu@att.com>
Mon, 3 Aug 2020 13:43:01 +0000 (19:13 +0530)
committerjz385p <jegadeesh.babu@att.com>
Mon, 3 Aug 2020 13:44:51 +0000 (19:14 +0530)
Fix for broken widget-ms build

Issue-ID: PORTAL-962
Change-Id: Ie6731308493d3ac56d11aba0b313293a771dec1c
Signed-off-by: jz385p <jegadeesh.babu@att.com>
ecomp-portal-BE-common/src/main/java/org/onap/portalapp/portal/controller/WidgetsCatalogController.java

index 4b68a01..e2cd13c 100644 (file)
@@ -282,16 +282,7 @@ public class WidgetsCatalogController extends EPRestrictedBaseController {
                 + MS_WIDGET_URL + widgetId + "/framework.js", String.class,
                                WidgetServiceHeaders.getInstance());
        }
-
-       @GetMapping(value = "/portalApi/microservices/{widgetId}/controller.js")
-       public String getWidgetController(@PathVariable("widgetId") long widgetId) throws Exception {
-               return template.getForObject(EcompPortalUtils.widgetMsProtocol() + "://"
-                               + widgetMService.getServiceLocation(whatService,
-                                               SystemProperties.getProperty(MS_WIDGET_LOCAL_PORT))
-                + MS_WIDGET_URL + widgetId + "/controller.js", String.class,
-                               WidgetServiceHeaders.getInstance());
-       }
-
+       
        @GetMapping(value = "/portalApi/microservices/{widgetId}/style.css")
        public String getWidgetCSS(@PathVariable("widgetId") long widgetId) throws Exception {
                return template.getForObject(EcompPortalUtils.widgetMsProtocol() + "://"