Edit network

This commit is contained in:
headlesdev
2025-05-18 16:59:16 +02:00
parent d4ad6e1656
commit 56571ba65a
4 changed files with 156 additions and 1 deletions

View File

@@ -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,
};
};