update lại thư mục cấu trúc mới của server nodejs và python
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import {} from "../context.js";
|
||||
import { apiFactory } from "../utils.js";
|
||||
/* eslint-disable */
|
||||
export const customFactory = apiFactory()((api, ctx, utils) => {
|
||||
return function custom(name, callback) {
|
||||
Object.defineProperty(api, name, {
|
||||
value: function (props) {
|
||||
return callback({ ctx, utils, props });
|
||||
},
|
||||
writable: false,
|
||||
enumerable: false,
|
||||
configurable: false,
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user