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.
15 lines
525 B
15 lines
525 B
'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);
|
|
};
|