Geotrek-admin
Geotrek-admin copied to clipboard
APIv2 should not return HTML content on empty routes
When requesting an endpoint that does not exist on /api/v2
we still receive some HTML content along with 404 status code
We should get an empty JSON instead
This causes crashes on Rando v3 trying to parse some JSON content from missing routes