Explorar o código

modify attachment format of API reference

Ryu Sato %!s(int64=6) %!d(string=hai) anos
pai
achega
cc9568a0dc
Modificáronse 1 ficheiros con 8 adicións e 4 borrados
  1. 8 4
      src/server/routes/attachment.js

+ 8 - 4
src/server/routes/attachment.js

@@ -42,10 +42,6 @@ const ApiResponse = require('../util/apiResponse');
  *            type: string
  *            type: string
  *            description: original file name
  *            description: original file name
  *            example: file.txt
  *            example: file.txt
- *          filePath:
- *            type: string
- *            description: file path
- *            example: attachment/5e07345972560e001761fa63/6b0b3facf3628699263d760e18efd446.txt
  *          creator:
  *          creator:
  *            $ref: '#/components/schemas/User'
  *            $ref: '#/components/schemas/User'
  *          page:
  *          page:
@@ -64,6 +60,14 @@ const ApiResponse = require('../util/apiResponse');
  *            type: string
  *            type: string
  *            description: attachment URL
  *            description: attachment URL
  *            example: http://localhost/files/5e0734e072560e001761fa67
  *            example: http://localhost/files/5e0734e072560e001761fa67
+ *          filePathProxied:
+ *            type: string
+ *            description: file path proxied
+ *            example: "/attachment/5e0734e072560e001761fa67"
+ *          downloadPathProxied:
+ *            type: string
+ *            description: download path proxied
+ *            example: "/download/5e0734e072560e001761fa67"
  */
  */
 
 
 /**
 /**