Oliver Eyton-Williams
30667f3b0d
refactor(api): DRY out route tests ( #52193 )
2023-11-16 09:08:32 +01:00
Oliver Eyton-Williams
135812162e
feat(api): POST /ms-trophy-challenge-completed ( #51808 )
...
Co-authored-by: Tom <20648924+moT01@users.noreply.github.com >
2023-11-03 10:00:55 +01:00
Tom
46375c6dd6
feat(api): add exam utils and GET /exam/:id endpoint to new api ( #51609 )
2023-10-26 13:35:09 +05:30
Oliver Eyton-Williams
948b7c52c2
fix(api): generate required properties for new users ( #51822 )
2023-10-07 10:50:30 +00:00
Oliver Eyton-Williams
5c8b94f236
test(api): setup mongo schema before running tests ( #51686 )
...
Co-authored-by: Muhammed Mustafa <MuhammedElruby@gmail.com >
2023-10-03 17:00:21 -05:00
Muhammed Mustafa
49b728d31b
refactor: disable naming-convenction rule ( #51685 )
2023-09-30 20:23:39 +07:00
Oliver Eyton-Williams
c2fff83d41
refactor(api): simplify user tests ( #51111 )
2023-07-31 21:08:05 +07:00
Muhammed Mustafa
ea45dc84b7
feat(api): add :email unsubscribe/:email to the deprecated ( #50497 )
...
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-06-22 10:25:40 -05:00
Niraj Nandish
999d8a6c03
feat(api): create account delete endpoint ( #50304 )
...
* feat(api): create account delete endpoint
---------
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com >
2023-05-18 17:01:21 +03:00
Oliver Eyton-Williams
c3c912db07
feat(api): add csrf protection ( #50275 )
...
Co-authored-by: Sboonny <muhammed@freecodecamp.org >
2023-05-18 17:06:40 +05:30
Oliver Eyton-Williams
c2cb818f87
chore(api): add test utilities ( #50289 )
2023-05-09 11:15:54 +05:30
Oliver Eyton-Williams
46cdfd7802
feat(api): add CORS headers ( #50120 )
...
* test: allow mocking of env vars
Since utils/env is a module, we can mock it to control env vars in
tests. However, it's not compatible with building the server in
setupFilesAfterEnv, so, instead, we can use a utility function to keep
things DRY.
* fix: update type of fastifyTestInstance
* chore: add comment about sts preload
* chore: rename header plugin
* test: add get util + provide origin on request
* feat: add cors headers
* chore: add TODO
2023-04-26 09:02:12 +02:00