...
|
...
|
@@ -70,7 +70,7 @@ const editor = (req, res, next) => { |
|
|
* @param {Function} next [description]
|
|
|
* @return {[type]} [description]
|
|
|
*/
|
|
|
const page = (req, res, next) => {
|
|
|
const pageData = (req, res, next) => {
|
|
|
/* 判断是不是AJAX请求 */
|
|
|
if (!req.xhr) {
|
|
|
res.json({ code: 400, message: '非法请求', data: '' });
|
...
|
...
|
@@ -146,6 +146,6 @@ const index = (req, res, next) => { |
|
|
|
|
|
module.exports = {
|
|
|
editor,
|
|
|
page,
|
|
|
pageData,
|
|
|
index
|
|
|
}; |
...
|
...
|
|