Use AssetsBundle to integrate UI resources into dropwizard.
Issue-ID: SDC-408
Change-Id: I987de3683c8d9beabf3e947cd3b830072f3c95cd
Signed-off-by: YuanHu <yuan.hu1@zte.com.cn>
@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