'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)); };