From 628a6fee8067bf505a56044d53887a30dd9eee68 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 25 Feb 2025 17:53:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(api):=20=E9=87=8D=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=20API=20=E6=96=87=E4=BB=B6=E5=B9=B6=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 api/example.js 重命名为 api/addClient.js - 删除多余的空行和注释 --- api/{example.js => addClient.js} | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) rename api/{example.js => addClient.js} (86%) diff --git a/api/example.js b/api/addClient.js similarity index 86% rename from api/example.js rename to api/addClient.js index 18dfe75..9eac8f4 100644 --- a/api/example.js +++ b/api/addClient.js @@ -1,5 +1,6 @@ -// api/example.js module.exports = (ctx) => { + + ctx.body = { message: 'Example POST API', data: ctx.request.body