From c9a3d13efedf659697150066aed934ece8f26bdc Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 24 Sep 2022 18:00:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E7=94=A8=E5=B7=A5=E5=85=B7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/console/toolLink.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 api/app/lib/controllers/console/toolLink.js 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