@fontoxml/fontoxml-development-tools
Version:
Development tools for Fonto.
41 lines (31 loc) • 1.79 kB
JavaScript
import express from 'express';
import configureReviewAnnotationGetPostRouteHandler from './configureReviewAnnotationGetPostRouteHandler.js';
import configureReviewAnnotationPostRouteHandler from './configureReviewAnnotationPostRouteHandler.js';
import configureReviewAnnotationPutRouteHandler from './configureReviewAnnotationPutRouteHandler.js';
import configureReviewAnnotationReplyPostRouteHandler from './configureReviewAnnotationReplyPostRouteHandler.js';
import configureReviewAnnotationReplyPutRouteHandler from './configureReviewAnnotationReplyPutRouteHandler.js';
import configureReviewStatePostRouteHandler from './configureReviewStatePostRouteHandler.js';
/** @typedef {import('../../src/getAppConfig.js').DevCmsConfig} DevCmsConfig */
/**
* @param {DevCmsConfig} config
*/
function configureConnectorsCmsStandardReviewRouter(config) {
// eslint-disable-next-line new-cap
const connectorsCmsStandardReviewRouter = express.Router();
connectorsCmsStandardReviewRouter
.route('/connectors/cms/standard/review/annotation')
.post(configureReviewAnnotationPostRouteHandler(config))
.put(configureReviewAnnotationPutRouteHandler(config));
connectorsCmsStandardReviewRouter
.route('/connectors/cms/standard/review/annotation/get')
.post(configureReviewAnnotationGetPostRouteHandler(config));
connectorsCmsStandardReviewRouter
.route('/connectors/cms/standard/review/annotation/reply')
.post(configureReviewAnnotationReplyPostRouteHandler(config))
.put(configureReviewAnnotationReplyPutRouteHandler(config));
connectorsCmsStandardReviewRouter
.route('/connectors/cms/standard/review/state')
.post(configureReviewStatePostRouteHandler(config));
return connectorsCmsStandardReviewRouter;
}
export default configureConnectorsCmsStandardReviewRouter;