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.
18 lines
848 B
18 lines
848 B
'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);
|
|
|
|
};
|