'use strict'; const label = require('../../controllers/label/index'); module.exports = function (app, router, opts) { app.fs.api.logAttr['GET/label'] = { content: '获取标签', visible: false }; router.get('/label', label.getLabels); app.fs.api.logAttr['POST/label/add'] = { content: '新增标签', visible: true }; router.post('/label/add', label.createLabels); app.fs.api.logAttr['DELETE/label/:id'] = { content: '删除标签', visible: true }; router.del('/label/:id', label.delLabels); };