1

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!

INbahn
  • 183
  • 1
  • 2
  • 7

1 Answers1

1

Looks like I found the solution myself with a little help of @YCF_L (sadly he deleted his comment).

Solution:

@Path("/user/{login : .+(?=\\/points)}")
INbahn
  • 183
  • 1
  • 2
  • 7