更新 package.json 版本号至 0.0.12;优化 isLocalhost 函数以处理空主机名;修复 handleRequest 中对 dns.hostName 的访问;在轻代码列表中添加 code 字段;更新示例路由描述
This commit is contained in:
@@ -34,6 +34,7 @@ app
|
||||
type: schema.kvContainer.type,
|
||||
tags: schema.kvContainer.tags,
|
||||
data: schema.kvContainer.data,
|
||||
code: schema.kvContainer.code,
|
||||
uid: schema.kvContainer.uid,
|
||||
createdAt: schema.kvContainer.createdAt,
|
||||
updatedAt: schema.kvContainer.updatedAt,
|
||||
@@ -42,7 +43,7 @@ app
|
||||
.from(schema.kvContainer)
|
||||
.where(and(...conditions))
|
||||
.orderBy(desc(schema.kvContainer.updatedAt));
|
||||
ctx.body = list;
|
||||
ctx.body = { list };
|
||||
return ctx;
|
||||
})
|
||||
.addTo(app);
|
||||
|
||||
Reference in New Issue
Block a user