✨ Added removal of single model to backend in utils
This commit is contained in:
parent
371a27f3fd
commit
04ec57bcdc
1 changed files with 4 additions and 2 deletions
|
@ -43,11 +43,13 @@ function useBackend(baseURL, timeout = 10000) {
|
|||
api.post("/set/password", data, auth(token)); // (re)set a new password
|
||||
|
||||
// Models
|
||||
backend.removeModels = (data, token) =>
|
||||
api.post("/remove/models", data, auth(token)); // Delete multiple models
|
||||
backend.createModel = (data, token) => api.post("/model", data, auth(token)); // Create model
|
||||
backend.saveModel = (handle, data, token) =>
|
||||
api.put("/model/" + handle, data, auth(token)); // Update model
|
||||
backend.removeModel = (handle, token) =>
|
||||
api.delete("/model/" + handle, auth(token)); // Remove model
|
||||
backend.removeModels = (data, token) =>
|
||||
api.post("/remove/models", data, auth(token)); // Delete multiple models
|
||||
|
||||
// Recipes
|
||||
backend.createRecipe = (data, token) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue