政务数据资源中心(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.
 
 
 
 

22 lines
956 B

'use strict';
const dataSource = require('../../controllers/metadataAcquisition/dataSource');
module.exports = function (app, router, opts, AuthCode) {
app.fs.api.logAttr['POST/meta/acq/dataSource'] = { content: '增加数据源信息', visible: true };
router.post('/meta/acq/dataSource', dataSource.addDataSource(opts))
//获取数据源列表
app.fs.api.logAttr['GET/meta/acq/dataSources'] = { content: '获取数据源列表', visible: true };
router.get('/meta/acq/dataSources', dataSource.getDataSource(opts));
// 修改数据源信息
app.fs.api.logAttr['PUT/acq/dataSource/:id'] = { content: '修改数据源信息', visible: true };
router.put('/acq/dataSource/:id', dataSource.editDataSource(opts))
// 删除数据源信息
app.fs.api.logAttr['DEL/acq/dataSource/:id'] = { content: '删除数据源信息', visible: true };
router.del('acq/dataSource/:id', dataSource.deleteDataSource(opts))
};