modules/cms/server/controllers/index.js
Function exports
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.then((Activity, Role, Language, Template, Content, Serializer, JSON2YAML) => {
return {
viewingAs: (req, res) => {
res.api({
Function iframe
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
iframe: (req, res) => {
try {
let iframePath, fullIframePath, variants;
iframePath = req.originalUrl.replace(/^\/admin/, '');