Browse Source

常用工具接口文件

dev
巴林闲侠 2 years ago
parent
commit
c9a3d13efe
  1. 19
      api/app/lib/controllers/console/toolLink.js

19
api/app/lib/controllers/console/toolLink.js

@ -0,0 +1,19 @@
'use strict';
async function add (ctx) {
try {
const { models } = ctx.fs.dc;
ctx.status = 20;
} catch (error) {
ctx.fs.logger.error(`path: ${ctx.path}, error: error`);
ctx.status = 400;
ctx.body = {
message: typeof error == 'string' ? error : undefined
}
}
}
module.exports = {
add
};
Loading…
Cancel
Save