|
@@ -23,45 +23,6 @@ const MIGRATION_FILE_NAME = '20211227060705-revision-path-to-page-id-schema-migr
|
|
|
* name: Revisions
|
|
* name: Revisions
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-/**
|
|
|
|
|
- * @swagger
|
|
|
|
|
- *
|
|
|
|
|
- * components:
|
|
|
|
|
- * schemas:
|
|
|
|
|
- * Revision:
|
|
|
|
|
- * description: Revision
|
|
|
|
|
- * type: object
|
|
|
|
|
- * properties:
|
|
|
|
|
- * _id:
|
|
|
|
|
- * type: string
|
|
|
|
|
- * description: revision ID
|
|
|
|
|
- * example: 5e0734e472560e001761fa68
|
|
|
|
|
- * __v:
|
|
|
|
|
- * type: number
|
|
|
|
|
- * description: DB record version
|
|
|
|
|
- * example: 0
|
|
|
|
|
- * author:
|
|
|
|
|
- * $ref: '#/components/schemas/User/properties/_id'
|
|
|
|
|
- * body:
|
|
|
|
|
- * type: string
|
|
|
|
|
- * description: content body
|
|
|
|
|
- * example: |
|
|
|
|
|
- * # test
|
|
|
|
|
- *
|
|
|
|
|
- * test
|
|
|
|
|
- * format:
|
|
|
|
|
- * type: string
|
|
|
|
|
- * description: format
|
|
|
|
|
- * example: markdown
|
|
|
|
|
- * path:
|
|
|
|
|
- * type: string
|
|
|
|
|
- * description: path
|
|
|
|
|
- * example: /user/alice/test
|
|
|
|
|
- * createdAt:
|
|
|
|
|
- * type: string
|
|
|
|
|
- * description: date created at
|
|
|
|
|
- * example: 2010-01-01T00:00:00.000Z
|
|
|
|
|
- */
|
|
|
|
|
module.exports = (crowi) => {
|
|
module.exports = (crowi) => {
|
|
|
const certifySharedPage = require('../../middlewares/certify-shared-page')(crowi);
|
|
const certifySharedPage = require('../../middlewares/certify-shared-page')(crowi);
|
|
|
const accessTokenParser = require('../../middlewares/access-token-parser')(crowi);
|
|
const accessTokenParser = require('../../middlewares/access-token-parser')(crowi);
|