Closed dselivanov closed 4 years ago
Doesn't work
rt = RestRserve:::Router$new() rt$add_path("/{p1}/{p2}", match = "regex", id = '1') rt$match_path("/a/b")
NULL
Works
rt$add_path("/p/{p1}/{p2}", match = "regex", id = '1') rt$match_path("/p/a/b")
[1] "1" attr(,"parameters_path") attr(,"parameters_path")$p1 [1] "a" attr(,"parameters_path")$p2 [1] "b"
Doesn't work
Works