'use strict'; const businessMetadata = require('../../controllers/businessMetadata'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/business/metadata/databases'] = { content: '获取表业务元数据列表', visible: false }; router.get('/business/metadata/databases', businessMetadata.getBusinessMetadataDatabases); app.fs.api.logAttr['POST/business/metadata/databases'] = { content: '新建表业务元数据', visible: true }; router.post('/business/metadata/databases', businessMetadata.postBusinessMetadataDatabases); app.fs.api.logAttr['PUT/business/metadata/databases/:id'] = { content: '修改表业务元数据', visible: true }; router.put('/business/metadata/databases/:id', businessMetadata.putBusinessMetadataDatabases); app.fs.api.logAttr['DEL/business/metadata/databases/:id'] = { content: '删除表业务元数据', visible: true }; router.delete('/business/metadata/databases/:id', businessMetadata.delBusinessMetadataDatabases); };