Przeglądaj źródła

Fixing swagger comment lint error

arvid-e 9 miesięcy temu
rodzic
commit
3f846e1e0a

+ 1 - 0
apps/app/src/interfaces/activity.ts

@@ -260,6 +260,7 @@ export const SupportedAction = {
   ACTION_ADMIN_MAIL_SES_UPDATE,
   ACTION_ADMIN_MAIL_TEST_SUBMIT,
   ACTION_ADMIN_FILE_UPLOAD_CONFIG_UPDATE,
+  ACTION_ADMIN_ATTACHMENT_DISPOSITION_UPDATE,
   ACTION_ADMIN_QUESTIONNAIRE_SETTINGS_UPDATE,
   ACTION_ADMIN_PAGE_BULK_EXPORT_SETTINGS_UPDATE,
   ACTION_ADMIN_MAINTENANCEMODE_ENABLED,

+ 30 - 30
apps/app/src/server/routes/apiv3/content-disposition-settings.js

@@ -37,43 +37,43 @@ module.exports = (crowi) => {
   const activityEvent = crowi.event('activity');
 
 
-  /**
+ /**
  * @swagger
  *
- *    /content-disposition-settings:
- *      get:
- *        tags: [Content-Disposition Settings]
- *        summary: Get content disposition settings for configurable MIME types
- *        description: Retrieve the current `inline` or `attachment` disposition setting for each configurable MIME type.
- *        security:
- *          - cookieAuth: []
- *          - adminRequired: []
- *       responses:
- *         200:
- *           description: Successfully retrieved content disposition settings.
- *           content:
- *             application/json:
- *               schema:
- *                 type: object
- *                 properties:
- *                   contentDispositionSettings:
- *                     type: object
- *                     description: An object mapping configurable MIME types to their current inline disposition status.
- *                     additionalProperties:
- *                       type: boolean
- *                       description: true if inline, false if attachment.
+ * /content-disposition-settings:
+ *   get:
+ *     tags: [Content-Disposition Settings]
+ *     summary: Get content disposition settings for configurable MIME types
+ *     description: Retrieve the current `inline` or `attachment` disposition setting for each configurable MIME type.
+ *     security:
+ *       - cookieAuth: []
+ *       - adminRequired: []
+ *     responses:
+ *       200:
+ *         description: Successfully retrieved content disposition settings.
+ *         content:
+ *           application/json:
+ *             schema:
+ *               type: object
+ *               properties:
+ *                 contentDispositionSettings:
+ *                   type: object
+ *                   description: An object mapping configurable MIME types to their current inline disposition status.
+ *                   additionalProperties:
+ *                     type: boolean
+ *                     description: true if inline, false if attachment.
  *                     example:
  *                       image/png: true
  *                       application/pdf: false
  *                       text/plain: true
- *         401:
- *           $ref: '#/components/responses/401'
- *         403:
- *           $ref: '#/components/responses/403'
- *         500:
- *           $ref: '#/components/responses/500'
+ *       401:
+ *         $ref: '#/components/responses/401'
+ *       403:
+ *         $ref: '#/components/responses/403'
+ *       500:
+ *         $ref: '#/components/responses/500'
  *
-  */
+ */
   router.get('/', loginRequiredStrictly, adminRequired, async(req, res) => {
     const promises = CONFIGURABLE_MIME_TYPES_FOR_DISPOSITION.map(async(mimeType) => {
       const configKey = `attachments:contentDisposition:${mimeType}:inline`;