Integrate UI Resources into dropwizard. 73/31573/1
authorYuanHu <yuan.hu1@zte.com.cn>
Tue, 13 Feb 2018 07:24:09 +0000 (15:24 +0800)
committerYuanHu <yuan.hu1@zte.com.cn>
Tue, 13 Feb 2018 07:24:09 +0000 (15:24 +0800)
Use AssetsBundle to integrate UI resources into dropwizard.

Issue-ID: SDC-408

Change-Id: I987de3683c8d9beabf3e947cd3b830072f3c95cd
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/WorkflowDesignerApp.java

index da40796..1e28905 100644 (file)
@@ -44,6 +44,9 @@ public class WorkflowDesignerApp extends Application<WorkflowDesignerConfigurati
   @Override
   public void initialize(Bootstrap<WorkflowDesignerConfiguration> bootstrap) {
     bootstrap.addBundle(new AssetsBundle("/api-doc", "/api-doc", "index.html", "api-doc"));
+    bootstrap.addBundle(new AssetsBundle("/workflow-modeler", "/workflow-modeler", "index.html",
+        "workflow-modeler"));
+    bootstrap.addBundle(new AssetsBundle("/workflow-modeler", "/", "index.html", "ng"));
   }
 
   @Override