Skip to content

Commit 13b0676

Browse files
authored
Merge pull request #68 from ponyjoy/patch-1
Javalin 4 path variable switched from ':param' to '{param}'
2 parents 8bec60f + 8b4b56f commit 13b0676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http-generator-javalin/src/main/java/io/avaje/http/generator/javalin/ControllerMethodWriter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ControllerMethodWriter {
3131
void write(boolean requestScoped) {
3232

3333
final PathSegments segments = method.getPathSegments();
34-
final String fullPath = segments.fullPathColon();
34+
final String fullPath = segments.fullPath();
3535

3636
writer.append(" ApiBuilder.%s(\"%s\", ctx -> {", webMethod.name().toLowerCase(), fullPath).eol();
3737
writer.append(" ctx.status(%s);", method.getStatusCode()).eol();

0 commit comments

Comments
 (0)