CI/CD
This commit is contained in:
7
ui/src/api/controlApi.js
Normal file
7
ui/src/api/controlApi.js
Normal file
@@ -0,0 +1,7 @@
|
||||
export function postJson(path, payload) {
|
||||
return fetch(path, {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
body: JSON.stringify(payload),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user