chore: remove unused api endpoints (#45085)

* chore: remove /refetch-user-completed-challenges

* chore: remove /update-my-theme

Theme changes are handled by /update-user-flag

I left 'update-my-theme' in the blocklist to allow for future use.

* chore: remove /certificate/verify-can-claim-cert

The client has not been using this for several weeks

* feat: return 410 for redundant endpoints

* chore: order endpoints
This commit is contained in:
Oliver Eyton-Williams
2022-02-25 04:11:24 +01:00
committed by GitHub
parent d41433767a
commit bc7cdf6c33
3 changed files with 11 additions and 49 deletions

View File

@@ -1,9 +0,0 @@
export const themes = {
night: 'night',
default: 'default'
};
export const invertTheme = currentTheme =>
!currentTheme || currentTheme === themes.default
? themes.night
: themes.default;