How to use the xhr.del function in xhr

To help you get started, we’ve selected a few xhr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github soyking / e3w / static / src / components / request.jsx View on Github external
function UsersRovokeRole(name, role, callback) {
    xhr.del("user/" + encodeURIComponent(name) + "/role/" + encodeURIComponent(role), withAuth(), handler(callback))
}
github soyking / e3w / static / src / components / request.jsx View on Github external
function KVDelete(path, callback) {
    xhr.del("kv" + path, withAuth(), handler(callback))
}
github soyking / e3w / static / src / components / request.jsx View on Github external
function RolesDeletePerm(name, key, rangeEnd, callback) {
    let bodyStr = JSON.stringify({ key: key, range_end: rangeEnd })
    xhr.del("role/" + encodeURIComponent(name) + "/permission", withAuth({ body: bodyStr }), handler(callback))
}
github soyking / e3w / static / src / components / request.jsx View on Github external
function UsersDelete(name, callback) {
    xhr.del("user/" + encodeURIComponent(name), withAuth(), handler(callback))
}
github soyking / e3w / static / src / components / request.jsx View on Github external
function RolesDelete(name, callback) {
    xhr.del("role/" + encodeURIComponent(name), withAuth(), handler(callback))
}