|
@@ -23,7 +23,7 @@ const validator = {
|
|
|
/**
|
|
/**
|
|
|
* @swagger
|
|
* @swagger
|
|
|
* tags:
|
|
* tags:
|
|
|
- * name: AppSetting
|
|
|
|
|
|
|
+ * name: AppSettings
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -61,8 +61,8 @@ module.exports = (crowi) => {
|
|
|
*
|
|
*
|
|
|
* /app-setting/lineBreak:
|
|
* /app-setting/lineBreak:
|
|
|
* put:
|
|
* put:
|
|
|
- * tags: [AppSetting]
|
|
|
|
|
- * description: Update lineBreak setting
|
|
|
|
|
|
|
+ * tags: [AppSettings]
|
|
|
|
|
+ * description: Update app setting
|
|
|
* requestBody:
|
|
* requestBody:
|
|
|
* required: true
|
|
* required: true
|
|
|
* content:
|
|
* content:
|
|
@@ -70,21 +70,27 @@ module.exports = (crowi) => {
|
|
|
* schema:
|
|
* schema:
|
|
|
* type: object
|
|
* type: object
|
|
|
* properties:
|
|
* properties:
|
|
|
- * isEnabledLinebreaks:
|
|
|
|
|
- * description: enable lineBreak
|
|
|
|
|
- * type: boolean
|
|
|
|
|
- * isEnabledLinebreaksInComments:
|
|
|
|
|
- * description: enable lineBreak in comment
|
|
|
|
|
|
|
+ * title:
|
|
|
|
|
+ * type: String
|
|
|
|
|
+ * description: site name show on page header and tilte of HTML
|
|
|
|
|
+ * confidential:
|
|
|
|
|
+ * type: String
|
|
|
|
|
+ * description: confidential show on page header
|
|
|
|
|
+ * globalLang:
|
|
|
|
|
+ * type: String
|
|
|
|
|
+ * description: language set when create user
|
|
|
|
|
+ * fileUpload:
|
|
|
* type: boolean
|
|
* type: boolean
|
|
|
|
|
+ * description: enable upload file except image file
|
|
|
* responses:
|
|
* responses:
|
|
|
* 200:
|
|
* 200:
|
|
|
- * description: Succeeded to update lineBreak setting
|
|
|
|
|
|
|
+ * description: Succeeded to update app setting
|
|
|
* content:
|
|
* content:
|
|
|
* application/json:
|
|
* application/json:
|
|
|
* schema:
|
|
* schema:
|
|
|
* properties:
|
|
* properties:
|
|
|
* status:
|
|
* status:
|
|
|
- * $ref: '#/components/schemas/LineBreakParams'
|
|
|
|
|
|
|
+ * $ref: '#/components/schemas/appSettingParams'
|
|
|
*/
|
|
*/
|
|
|
router.put('/appSetting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, ApiV3FormValidator, async(req, res) => {
|
|
router.put('/appSetting', loginRequiredStrictly, adminRequired, csrf, validator.appSetting, ApiV3FormValidator, async(req, res) => {
|
|
|
|
|
|