运维服务中台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
1.1 KiB

'use strict';
const means = require('../../controllers/means/index');
module.exports = function (app, router, opts) {
app.fs.api.logAttr['GET/file/list'] = { content: '获取文件夹列表', visible: true };
router.get('/file/list', means.fileList);
app.fs.api.logAttr['POST/file/addEdit'] = { content: '添加/编辑文件夹', visible: true };
router.post('/file/addEdit', means.addEditFile);
app.fs.api.logAttr['DEL/file/del/:id'] = { content: '删除文件夹', visible: true };
router.del('/file/del/:id', means.delFile);
app.fs.api.logAttr['POST/file'] = { content: '添加文件', visible: true };
router.post('/file', means.addFile);
app.fs.api.logAttr['GET/file'] = { content: '获取文件列表', visible: true };
router.get('/file', means.folderFileList);
app.fs.api.logAttr['DEL/file/:id'] = { content: '删除文件夹', visible: true };
router.del('/file/:id', means.delfolderFile);
app.fs.api.logAttr['POSTattachments/:p'] = { content: '上传文件', visible: true };
router.post('/attachments/:p', means.upload);
};