mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-17 05:56:01 +01:00
feat: admin group panel
This commit is contained in:
9
ui/modules/fetch.js
Normal file
9
ui/modules/fetch.js
Normal file
@@ -0,0 +1,9 @@
|
||||
export function fetchCallback(name, data, cb) {
|
||||
fetch(`https://${GetParentResourceName()}/${name}`, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json; charset=UTF-8" },
|
||||
body: JSON.stringify(data)
|
||||
}).then(resp => resp.json()).then(resp => {
|
||||
if (cb) cb(resp);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user