Commit Graph

13 Commits

Author SHA1 Message Date
Y.K. Lin
7bed27a14b fix(api): remove typo from randomAPIs.js (#56755) 2024-10-19 10:03:21 -07:00
Shaun Hamilton
f1cd0cfae3 fix(api): handle 4XX errors get-public-profile (#55205)
Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
2024-06-20 11:24:52 +05:30
Muhammed Mustafa
4c5363bff0 fix(api-server): a typo in the info message for resubscribe (#50496) 2023-05-24 16:27:26 +02:00
Oliver Eyton-Williams
21709a11cb chore: return 404 for update-my-current-challenge (#46042) 2022-05-18 08:39:52 -05:00
Naomi Carrigan
9e03419efb chore: dry out 410 logic (#45257) 2022-02-26 00:38:18 +05:30
Oliver Eyton-Williams
ce23dcb32c fix: return 410 for api/github (#45250) 2022-02-25 10:38:29 +01:00
Oliver Eyton-Williams
604e29c4bc chore: remove broken endpoints (#45086)
These still exist, technically, but there's no render engine so they all
generate errors instead of pages
2022-02-11 12:44:07 -08:00
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
Mrugesh Mohapatra
6c91f81b0e chore(deps): upgrade eslint, prettier & related packages 2021-03-11 12:19:42 +05:30
Mrugesh Mohapatra
b5f4754e2a fix: re-revert the API decoupling (#41263)
* fix(api): decouple api from curriculum

This reverts commit 8f0e441644 and
introduces the implementations from #40703.

* fix(gitpod): add curriculum build to GitPod

This reverts commit 706d70f58d and
introduces implementations from #41234.

* docs: update DevOps manual for api change (#41259)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-25 12:02:35 -08:00
Mrugesh Mohapatra
8f0e441644 revert(api): decouple api from curriculum
This reverts commit c077ffe4b9
via PR #40703
2021-02-25 03:40:09 +05:30
Ahmad Abdolsaheb
3bf52faeaa fix: dry certification config (#40927)
* fix: move cert config to config

* fix: move gitHubUserAgent to misc

* feat: rename maps

* feat: relocate oldDataVizId

* fix: correct path for gitHubUserAgent

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2021-02-22 20:38:38 -08:00
Oliver Eyton-Williams
c077ffe4b9 feat(api): decouple api from curriculum (#40703) 2021-02-22 12:23:59 +05:30