mirror of
https://github.com/metosin/reitit.git
synced 2025-12-18 17:01:11 +00:00
Fix Java Trie example
This commit is contained in:
parent
dd864a0142
commit
68d68402d9
1 changed files with 2 additions and 2 deletions
|
|
@ -291,8 +291,8 @@ public class Trie {
|
||||||
staticMatcher("/auth/",
|
staticMatcher("/auth/",
|
||||||
linearMatcher(
|
linearMatcher(
|
||||||
Arrays.asList(
|
Arrays.asList(
|
||||||
staticMatcher("login", dataMatcher(null, 1)),
|
staticMatcher("login", dataMatcher(PersistentArrayMap.EMPTY, 1)),
|
||||||
staticMatcher("recovery", dataMatcher(null, 2))), true))), true);
|
staticMatcher("recovery", dataMatcher(PersistentArrayMap.EMPTY, 2))), true))), true);
|
||||||
System.err.println(matcher);
|
System.err.println(matcher);
|
||||||
System.out.println(lookup(matcher, "/auth/login"));
|
System.out.println(lookup(matcher, "/auth/login"));
|
||||||
System.out.println(lookup(matcher, "/auth/recovery"));
|
System.out.println(lookup(matcher, "/auth/recovery"));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue