MCPcopy Create free account
hub / github.com/Moli-X/Other / apiAddAppSub

Function apiAddAppSub

Backups/KeLee/Resource/Script/BoxJS/BoxJS.js:574–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572}
573
574async function apiAddAppSub() {
575 const sub = $.toObj($request.body)
576 // 添加订阅
577 const usercfgs = getUserCfgs()
578 usercfgs.appsubs.push(sub)
579 $.setjson(usercfgs, $.KEY_usercfgs)
580 // 加载订阅缓存
581 await reloadAppSubCache(sub.url)
582 $.json = getBoxData()
583}
584
585async function apiReloadAppSub() {
586 const sub = $.toObj($request.body)

Callers 1

handleApiFunction · 0.85

Calls 6

getUserCfgsFunction · 0.85
reloadAppSubCacheFunction · 0.85
getBoxDataFunction · 0.85
toObjMethod · 0.45
pushMethod · 0.45
setjsonMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…