Reputation: 193
I am trying to allow slashes in my Path:
@Path("/user/{login}/points")
by using this solution so it becomes:
@Path("/user/{login : .+}/points")
but it will not work anytime a user names their account e.g
test/points
because only "test" will be passed. It works fine with test/test or any other login not ending with /points.
I have no idea how should I solve this. I need it as String param and it's set by user.
Thanks for any help!
Upvotes: 1
Views: 266
Reputation: 193
Looks like I found the solution myself with a little help of @YCF_L (sadly he deleted his comment).
Solution:
@Path("/user/{login : .+(?=\\/points)}")
Upvotes: 1