Table of Contents

API Call

API call in net module is specifically design for Sobuuk currently, used as following. It requires authentication (Google Sign-in) or will show error.

var Res = await net.call_api("/api/some-api",Data_Obj);
// Res is now object
if (Res instanceof Error) return;
if (Res?.Err) { ui.show_err(Res.Err); return; }