befly 0.2.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apis/health/info.js +1 -1
- package/package.json +2 -2
- package/utils/api.js +2 -2
package/apis/health/info.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Env } from '../../config/env.js';
|
|
|
2
2
|
import { Api } from '../../utils/api.js';
|
|
3
3
|
import { RYes, RNo } from '../../utils/util.js';
|
|
4
4
|
|
|
5
|
-
export default Api.POST('健康检查',
|
|
5
|
+
export default Api.POST('健康检查', false, {}, [], async (befly, ctx) => {
|
|
6
6
|
const info = {
|
|
7
7
|
status: 'ok',
|
|
8
8
|
timestamp: new Date().toISOString(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Buma - 为 Bun 专属打造的 API 接口框架核心引擎",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"README.md",
|
|
50
50
|
"vitest.config.js"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "dc3350b08a8cd567188546b18db3465c7563f99e"
|
|
53
53
|
}
|
package/utils/api.js
CHANGED
|
@@ -9,7 +9,7 @@ export class Api {
|
|
|
9
9
|
auth: auth,
|
|
10
10
|
fields: fields,
|
|
11
11
|
required: required,
|
|
12
|
-
handler: await handler(
|
|
12
|
+
handler: async (befly, ctx, req) => await handler(befly, ctx, req)
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -21,7 +21,7 @@ export class Api {
|
|
|
21
21
|
auth: auth,
|
|
22
22
|
fields: fields,
|
|
23
23
|
required: required,
|
|
24
|
-
handler: await handler(
|
|
24
|
+
handler: async (befly, ctx, req) => await handler(befly, ctx, req)
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
}
|