Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
matejvasek committed Oct 13, 2020
1 parent ca677b6 commit 0469130
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ public void boot(ShutdownContextBuildItem shutdown,
executorBuildItem.getExecutorProxy());

String rootPath = httpConfig.rootPath;
if (rootPath == null)
if (rootPath == null) {
rootPath = "/";
else if (!rootPath.endsWith("/"))
} else if (!rootPath.endsWith("/")) {
rootPath += "/";
}

routes.produce(new RouteBuildItem(rootPath, handler, false));

for (FunctionBuildItem function : functions) {
Expand Down

0 comments on commit 0469130

Please sign in to comment.