refactor(api): migrate batch 6 endpoints to relayGet

This commit is contained in:
2026-03-24 09:28:01 +00:00
parent 5797443edc
commit 6da6fdb4d2
8 changed files with 144 additions and 139 deletions
+3
View File
@@ -41,6 +41,8 @@ const loadModule = (relativePath, injected = {}) => {
source +=
'\nif (typeof ApiProxy !== "undefined" && !module.exports.default) module.exports.default = ApiProxy;\n';
const defaultRelayGet = async () => ({});
const context = {
module: { exports: {} },
exports: {},
@@ -52,6 +54,7 @@ const loadModule = (relativePath, injected = {}) => {
warn: () => {},
error: () => {}
},
relayGet: defaultRelayGet,
...injected
};