freeCodeCamp/api/src
Oliver Eyton-Williams 5e17868c74
fix(api): allow fastify to set content-type dynamically (#50248)
fix: allow fastify to set content-type dynamically

We can set content-type: application/json for specific routes, but
doing so ends up with confusing, over-engineered code.

Instead we should take care when auditing the endpoints.
2023-05-02 10:15:31 -07:00
..
db chore(api): compile TS into /dist (#49812 2023-03-28 19:42:20 +05:30
middleware chore(api): compile TS into /dist (#49812 2023-03-28 19:42:20 +05:30
plugins fix(api): allow fastify to set content-type dynamically (#50248) 2023-05-02 10:15:31 -07:00
routes refactor(api): remove unused endpoints (#50252) 2023-05-02 19:54:05 +03:00
schemas fix(deps): update dependency @sinclair/typebox to v0.26.6 (#49855) 2023-04-03 09:13:36 +00:00
utils feat(api): add CORS headers (#50120) 2023-04-26 09:02:12 +02:00
app.ts refactor(api): remove unused endpoints (#50252) 2023-05-02 19:54:05 +03:00
server.test.ts fix(api): allow fastify to set content-type dynamically (#50248) 2023-05-02 10:15:31 -07:00
server.ts feat(api): dev login (#49880) 2023-03-29 18:08:38 +05:30