MCPcopy
hub / github.com/chavyleung/scripts / apiSaveData

Function apiSaveData

chavy.box.js:953–960  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

951}
952
953async function apiSaveData() {
954 const { key: dataKey, val: dataVal } = $.toObj($request.body)
955 $.setdata(dataVal, dataKey)
956 $.json = {
957 key: dataKey,
958 val: $.getdata(dataKey)
959 }
960}
961
962/**
963 * ===================================

Callers

nothing calls this directly

Calls 3

toObjMethod · 0.45
setdataMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…