MCPcopy Create free account
hub / github.com/chavyleung/scripts / apiSaveData

Function apiSaveData

box/chavy.boxjs.js:1008–1015  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1006}
1007
1008async function apiSaveData() {
1009 const { key: dataKey, val: dataVal } = $.toObj($request.body)
1010 $.setdata(dataVal, dataKey)
1011 $.json = {
1012 key: dataKey,
1013 val: $.getdata(dataKey)
1014 }
1015}
1016
1017/**
1018 * ===================================

Callers

nothing calls this directly

Calls 3

toObjMethod · 0.45
setdataMethod · 0.45
getdataMethod · 0.45

Tested by

no test coverage detected