freeCodeCamp/api-server
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
..
src feat: make api only return json (#42320) 2021-06-05 13:20:40 +01:00
.babelrc fix: remove redundant babel plugin (#42234) 2021-05-24 13:30:09 -07:00
.gitignore fix(api): remove redirects from api 2020-09-01 11:35:44 +05:30
package-lock.json chore: update api deps, apply npm audit fix (#42179) 2021-05-18 22:39:26 +05:30
package.json chore: update api deps, apply npm audit fix (#42179) 2021-05-18 22:39:26 +05:30