marmelab / FakeRest

Patch fetch/XMLHttpRequest to fake a REST API server in the browser, based on JSON data.
MIT License
439 stars 48 forks source link

Fix identifiers parsing #79

Closed djhi closed 4 months ago

djhi commented 4 months ago

Problem

FakeRest returns 404 for all requests targeting an item with a numeric identifier.

Solution

image

Fix the RegExp and add tests