diff --git a/api/app/lib/controllers/console/toolLink.js b/api/app/lib/controllers/console/toolLink.js new file mode 100644 index 0000000..5ce1b45 --- /dev/null +++ b/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 +}; \ No newline at end of file