|
@@ -465,21 +465,21 @@ module.exports = (crowi) => {
|
|
|
* /personal-setting:
|
|
* /personal-setting:
|
|
|
* put:
|
|
* put:
|
|
|
* tags: [PersonalSetting]
|
|
* tags: [PersonalSetting]
|
|
|
- * operationId: getPersonalSetting
|
|
|
|
|
|
|
+ * operationId: putEditorSettings
|
|
|
* summary: /personal-setting
|
|
* summary: /personal-setting
|
|
|
- * description: Get editor preferences
|
|
|
|
|
|
|
+ * description: Change editor preferences
|
|
|
* responses:
|
|
* responses:
|
|
|
* 200:
|
|
* 200:
|
|
|
- * description: editor preferences
|
|
|
|
|
|
|
+ * description: params of personal info
|
|
|
* content:
|
|
* content:
|
|
|
* application/json:
|
|
* application/json:
|
|
|
* schema:
|
|
* schema:
|
|
|
* properties:
|
|
* properties:
|
|
|
- * editorCurrentSettings:
|
|
|
|
|
|
|
+ * currentUser:
|
|
|
* type: object
|
|
* type: object
|
|
|
- * description: editor preferences
|
|
|
|
|
|
|
+ * description: personal params
|
|
|
*/
|
|
*/
|
|
|
- router.put('/editor-current-settings', accessTokenParser, loginRequiredStrictly, async(req, res) => {
|
|
|
|
|
|
|
+ router.put('/editor-settings', accessTokenParser, loginRequiredStrictly, async(req, res) => {
|
|
|
const { editorSettings } = req.body;
|
|
const { editorSettings } = req.body;
|
|
|
try {
|
|
try {
|
|
|
const userData = await req.user.updateEditorCurrentSettings(editorSettings);
|
|
const userData = await req.user.updateEditorCurrentSettings(editorSettings);
|