refactor(api): migrate batch 6 endpoints to relayGet
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user