Ai
2 Star 5 Fork 0

String-for-100w/String

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
postList.js 652 Bytes
一键复制 编辑 原始数据 按行查看 历史
ashou 提交于 2020-09-12 09:46 +08:00 . 添加整体框架代码
module.exports = [{
url: "/post",
feeback: async function (ctx, next) {
ctx.status = 200;
ctx.body = JSON.stringify({
code: 2,
msg: "成功",
data: {
data: "接口测试"
}
});
}
},
{
url: "/nextpost",
feeback: async function (ctx, next) {
ctx.status = 200;
ctx.body = JSON.stringify({
code: 0,
msg: "成功",
data: {
data: "接口测试1"
}
});
}
}
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/string-for-100w/string.git
git@gitee.com:string-for-100w/string.git
string-for-100w
string
String
master

搜索帮助