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.
29 lines
1.5 KiB
29 lines
1.5 KiB
'use strict';
|
|
|
|
const latestMetadata = require('../../controllers/latestMetadata');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
app.fs.api.logAttr['GET/resource-catalog'] = { content: '获取资源目录', visible: false };
|
|
router.get('/resource-catalog', latestMetadata.getResourceCatalog);
|
|
|
|
app.fs.api.logAttr['POST /resource-catalog'] = { content: '新增资源目录', visible: true };
|
|
router.post('/resource-catalog', latestMetadata.postResourceCatalog);
|
|
|
|
app.fs.api.logAttr['PUT /resource-catalog/:id'] = { content: '修改资源目录', visible: true };
|
|
router.put('/resource-catalog/:id', latestMetadata.putResourceCatalog);
|
|
|
|
app.fs.api.logAttr['DEL /resource-catalog/:id'] = { content: '删除资源目录', visible: true };
|
|
router.delete('/resource-catalog/:id', latestMetadata.delResourceCatalog);
|
|
|
|
app.fs.api.logAttr['GET/metadata/databases'] = { content: '获取库表元数据列表', visible: false };
|
|
router.get('/metadata/databases', latestMetadata.getMetadataDatabases);
|
|
|
|
app.fs.api.logAttr['GET/metadata/files'] = { content: '获取文件元数据列表', visible: false };
|
|
router.get('/metadata/files', latestMetadata.getMetadataFiles);
|
|
|
|
app.fs.api.logAttr['GET/metadata/restapis'] = { content: '获取接口元数据列表', visible: false };
|
|
router.get('/metadata/restapis', latestMetadata.getMetadataRestapis);
|
|
|
|
app.fs.api.logAttr['GET/metadata/models'] = { content: '获取元数据模型', visible: false };
|
|
router.get('/metadata/models', latestMetadata.getMetadataModels);
|
|
};
|