'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _cli = require('../../cli');

var route = function route(req, res) {
  if (typeof res._header !== 'undefined' && res._header !== null) return;
  _cli.cmsStructure.structure.editStructure(req.body.type, req.body.folderPath);
  res.set('Content-Type', 'application/json');
  res.send(JSON.stringify({ success: 1 }));
};

exports.default = route;