政务数据资源中心(Government data Resource center) 03专项3期主要建设内容
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.
 
 
 
 

23 lines
897 B

'use strict';
const backups = require('../../controllers/backups/index');
module.exports = function (app, router, opts, AuthCode) {
app.fs.api.logAttr['POST/meta/backups'] = { content: '增加数据备份', visible: true };
router.post('/meta/backups', backups.addUser(opts))
// 修改数据备份信息
app.fs.api.logAttr['PUT/meta/backups/:id'] = { content: '修改数据备份信息', visible: true };
router.put('/meta/backups/:id', backups.editUser(opts))
// 删除数据备份信息
app.fs.api.logAttr['DEL/meta/backups/:id'] = { content: '删除数据备份信息', visible: true };
router.del('/meta/backups/:id', backups.deleteUser(opts))
//获取数据备份信息列表
app.fs.api.logAttr['GET/meta/backupss'] = { content: '获取数据备份信息列表', visible: true };
router.get('/meta/backupss', backups.getUserList(opts));
};