UNPKG

@nzz/q-server

Version:

__Q__ is a system that lets journalists create visual elements for stories. It is developed by [NZZ Storytelling](https://www.nzz.ch/storytelling) and used in the [NZZ](https://www.nzz.ch) newsroom.

14 lines (12 loc) 302 B
module.exports = { path: '/editor/config', method: 'GET', config: { description: 'Returns configuration for Q Editor', tags: ['api', 'editor'] }, handler: (request, reply) => { const editorConfig = request.server.settings.app.editorConfig.get(''); reply(editorConfig); } }