mirror of
https://github.com/crocofied/CoreControl.git
synced 2025-12-29 16:14:43 +00:00
Edit network
This commit is contained in:
@@ -8,6 +8,10 @@ const useNetworks = () => {
|
||||
axios.post('/api/sites/networks/add', network);
|
||||
};
|
||||
|
||||
const editNetwork = (network: Network) => {
|
||||
axios.post('/api/sites/networks/edit', network);
|
||||
};
|
||||
|
||||
const deleteNetwork = (networkId: string) => {
|
||||
axios.delete('/api/sites/networks/delete', {
|
||||
params: { networkId }
|
||||
@@ -16,6 +20,7 @@ const useNetworks = () => {
|
||||
|
||||
return {
|
||||
addNetwork,
|
||||
editNetwork,
|
||||
deleteNetwork,
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user