freeCodeCamp/api-server/src
Oliver Eyton-Williams 7b65909522
feat: make api only return json (#42320)
* fix(api): return json for delete + reset-progress

* refactor(api): make .json calls explicit

These .send() calls had objects as arguments. Using .json() makes it
explicit without changing behaviour.

* fix: return json or redirectWithFlash

We should never be getting requests for plain text, but if we do they
should be redirected back to the client.

* fix: prioritize JSON responses

If accepted, respond with JSON.  If not, it's probably a bad request.
2021-06-05 13:20:40 +01:00
..
common chore(deps): update dependency prettier to v2.3.0 (#42074) 2021-05-10 08:48:49 -07:00
server feat: make api only return json (#42320) 2021-06-05 13:20:40 +01:00
development-start.js fix: re-revert the API decoupling (#41263) 2021-02-25 12:02:35 -08:00
production-start.js fix: re-revert the API decoupling (#41263) 2021-02-25 12:02:35 -08:00