File tree Expand file tree Collapse file tree
server/controllers/user.controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,15 @@ import {
88} from '../../types' ;
99import { saveUser } from './helpers' ;
1010
11+ /**
12+ * - Method: `PUT`
13+ * - Endpoint: `/preferences`
14+ * - Authenticated: `true`
15+ * - Controller: `UserController.updatePreferences`
16+ *
17+ * Description:
18+ * - Update user preferences, such as AppTheme
19+ */
1120export const updatePreferences : RequestHandler <
1221 { } ,
1322 UpdatePreferencesResponseBody ,
@@ -28,6 +37,15 @@ export const updatePreferences: RequestHandler<
2837 }
2938} ;
3039
40+ /**
41+ * - Method: `PUT`
42+ * - Endpoint: `/cookie-consent`
43+ * - Authenticated: `true`
44+ * - Id: `UserController.updatePreferences`
45+ *
46+ * Description:
47+ * - Update user cookie consent
48+ */
3149export const updateCookieConsent : RequestHandler <
3250 { } ,
3351 PublicUserOrError ,
You can’t perform that action at this time.
0 commit comments