政务数据资源中心(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.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const adapter = require('../../controllers/metadataAcquisition/adapter');
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts, AuthCode) {
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/adapter/check/connect'] = { content: '测试适配器连接', visible: true };
|
|
|
|
router.post('/adapter/check/connect', adapter.checkConnect(opts))
|
|
|
|
|
|
|
|
app.fs.api.logAttr['POST/adapter'] = { content: '增加适配器', visible: true };
|
|
|
|
router.post('/meta/acq/adapter', adapter.addAdapter(opts))
|
|
|
|
|
|
|
|
//获取适配器列表
|
|
|
|
app.fs.api.logAttr['GET/meta/acq/adapters'] = { content: '获取适配器列表', visible: true };
|
|
|
|
router.get('/meta/acq/adapters', adapter.getAdapters(opts));
|
|
|
|
};
|