Skip to content

Commit 273939d

Browse files
added new route
1 parent ca9ba6b commit 273939d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

fabric8/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
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>

fabric8/src/main/java/it/codingjam/web/WebVerticle.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)