Geotrek-admin icon indicating copy to clipboard operation
Geotrek-admin copied to clipboard

APIv2 should not return HTML content on empty routes

Open Chatewgne opened this issue 3 years ago • 0 comments

When requesting an endpoint that does not exist on /api/v2 we still receive some HTML content along with 404 status code

image

We should get an empty JSON instead

This causes crashes on Rando v3 trying to parse some JSON content from missing routes

Chatewgne avatar Jan 20 '22 16:01 Chatewgne