Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit bd0e00c

Browse files
committed
Support multiples path pattern for per route handler, fix jooby-project#37
Import routes from existing app, fix jooby-project#38
1 parent dd627ef commit bd0e00c

File tree

22 files changed

+1962
-641
lines changed

22 files changed

+1962
-641
lines changed

coverage-report/src/test/java/org/jooby/integration/AssetFeature.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,23 @@ public class AssetFeature extends ServerFeature {
77

88
{
99
assets("/assets/**");
10+
11+
assets("/", "welcome.html");
12+
}
13+
14+
@Test
15+
public void root() throws Exception {
16+
request()
17+
.get("/")
18+
.expect(200)
19+
.header("Content-Type", "text/html;charset=UTF-8")
20+
.header("Last-Modified", lastModified -> {
21+
request()
22+
.get("/")
23+
.header("If-Modified-Since", lastModified)
24+
.expect(304)
25+
.empty();
26+
});
1027
}
1128

1229
@Test

0 commit comments

Comments
 (0)