File tree Expand file tree Collapse file tree
src/main/java/it/codingjam/web Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 <groupId >it.codingjam</groupId >
55 <artifactId >vertx-docker-fabric8</artifactId >
66 <packaging >jar</packaging >
7- <version >1.1 </version >
7+ <version >1.2 </version >
88 <name >vertx-docker-fabric8</name >
99 <url >http://maven.apache.org</url >
1010 <prerequisites >
Original file line number Diff line number Diff line change @@ -15,7 +15,9 @@ public class WebVerticle extends AbstractVerticle {
1515 @ Override
1616 public void start (Future <Void > startFuture ) throws Exception {
1717 final Router router = Router .router (getVertx ());
18- router .route (HttpMethod .GET , "/" ).handler (StaticHandler .create ("static" ));
18+ final StaticHandler staticHandler = StaticHandler .create ("static" );
19+ router .route (HttpMethod .GET , "/" ).handler (staticHandler );
20+ router .route (HttpMethod .GET , "/hello" ).handler (staticHandler );
1921
2022 logger .info ("Try to start WebServer on port: {}" , HTTP_PORT );
2123 getVertx ().createHttpServer ()
You can’t perform that action at this time.
0 commit comments