I'd like to know if it's possible to have two different URI's in the same (Rest) @Path using regex or something else.
Eg.:
@Path("{path: (/foo1|/foo2)}")
public class Service {
...
}
Or something like that.
I'd like to call something like:
http://localhost/foo1
http://localhost/foo2
But using the same class.
I'd appreciate any help.