UNPKG

@fontoxml/fontoxml-development-tools

Version:

Development tools for Fonto.

26 lines (18 loc) 853 B
import express from 'express'; import configureProfileAvatarGetRouteHandler from './configureProfileAvatarGetRouteHandler.js'; import configureProfileGetPostRouteHandler from './configureProfileGetPostRouteHandler.js'; /** @typedef {import('../../src/getAppConfig.js').DevCmsConfig} DevCmsConfig */ /** * @param {DevCmsConfig} config */ function configureConnectorsCmsStandardProfileRouter(config) { const connectorsCmsStandardProfileRouter = express.Router(); connectorsCmsStandardProfileRouter .route('/connectors/cms/standard/profile/get') .post(configureProfileGetPostRouteHandler()); connectorsCmsStandardProfileRouter .route('/connectors/cms/standard/profile/avatar') .get(configureProfileAvatarGetRouteHandler(config)); return connectorsCmsStandardProfileRouter; } export default configureConnectorsCmsStandardProfileRouter;