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.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const mirror = require('../../controllers/mirror');
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['PUT/mirror'] = { content: '编辑镜像信息', visible: false };
|
|
|
|
router.put('/mirror', mirror.edit);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['PUT/mirror/:mirrorId/id'] = { content: '更新镜像服务ID', visible: false };
|
|
|
|
router.put('/mirror/:mirrorId/id', mirror.refreshId);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/mirror/list'] = { content: '获取镜像信息列表', visible: false };
|
|
|
|
router.get('/mirror/list', mirror.list);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/mirror/:mid'] = { content: '获取指定镜像信息', visible: false };
|
|
|
|
router.get('/mirror/:mid', mirror.get);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['DEL/mirror/:mirrorId'] = { content: '删除镜像信息', visible: false };
|
|
|
|
router.del('/mirror/:mirrorId', mirror.del);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['PUT/mirror/:mirrorId/publish'] = { content: '发布镜像信息', visible: false };
|
|
|
|
router.put('/mirror/:mirrorId/publish', mirror.publish);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['PUT/mirror/:mirrorId/copy'] = { content: '复制镜像信息', visible: false };
|
|
|
|
router.put('/mirror/:mirrorId/copy', mirror.copy);
|
|
|
|
};
|