Add React Admin and modify AdminHandler

This commit is contained in:
Nathan Barber
2021-04-05 16:51:22 -04:00
parent c5bfd28005
commit 11cb9523e8
35 changed files with 18333 additions and 218 deletions

10
jsx/src/util/jhapiUtil.js Normal file
View File

@@ -0,0 +1,10 @@
export const jhapiRequest = (endpoint, method, data) => {
return fetch("/hub/api" + endpoint, {
method: method,
json: true,
headers: {
"Content-Type": "application/json",
},
body: data ? JSON.stringify(data) : null,
});
};