'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); };