What if I request for "/resourcesXYZ/1"?
This situation would also be caught by this regexp. Make this r'/resources/'.