-
Notifications
You must be signed in to change notification settings - Fork 3
/
csp-origins.js
69 lines (68 loc) · 1.61 KB
/
csp-origins.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
import {
clearApiCache,
invokeFetch
} from "./chunks/SMQGR3VM.js";
import "./chunks/3KD5W26Z.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/csp-origins.ts
var getCSPEntries = async (query, options) => invokeFetch("csp-origins", {
method: "get",
pathTemplate: "/api/v1/csp-origins",
query,
options
});
var createCSPEntry = async (body, options) => invokeFetch("csp-origins", {
method: "post",
pathTemplate: "/api/v1/csp-origins",
body,
contentType: "application/json",
options
});
var getCSPHeader = async (options) => invokeFetch("csp-origins", {
method: "get",
pathTemplate: "/api/v1/csp-origins/actions/generate-header",
options
});
var deleteCSPEntry = async (id, options) => invokeFetch("csp-origins", {
method: "delete",
pathTemplate: "/api/v1/csp-origins/{id}",
pathVariables: { id },
options
});
var getCSPEntry = async (id, options) => invokeFetch("csp-origins", {
method: "get",
pathTemplate: "/api/v1/csp-origins/{id}",
pathVariables: { id },
options
});
var updateCSPEntry = async (id, body, options) => invokeFetch("csp-origins", {
method: "put",
pathTemplate: "/api/v1/csp-origins/{id}",
pathVariables: { id },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("csp-origins");
}
var cspOriginsExport = {
getCSPEntries,
createCSPEntry,
getCSPHeader,
deleteCSPEntry,
getCSPEntry,
updateCSPEntry,
clearCache
};
var csp_origins_default = cspOriginsExport;
export {
clearCache,
createCSPEntry,
csp_origins_default as default,
deleteCSPEntry,
getCSPEntries,
getCSPEntry,
getCSPHeader,
updateCSPEntry
};