Skip to content

Commit 57d38f7

Browse files
committed
add jsdocs to userController.userPreferences routes
1 parent 33aa06b commit 57d38f7

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

server/controllers/user.controller/userPreferences.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ import {
88
} from '../../types';
99
import { 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+
*/
1120
export 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+
*/
3149
export const updateCookieConsent: RequestHandler<
3250
{},
3351
PublicUserOrError,

0 commit comments

Comments
 (0)