I have this URL to match:
$httpBackend.whenGET('/api/alerts/1121212156/0/4/0').repond(someObject)
The problem is that 1121212156 is a tick so it can be different every time. Does someone know how to create a regex to do that?
$httpBackend.whenGET(/\api/alerts/[0-9]+/2/4/0/). respond(someObject);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With