Revert "Feature/multiple switches per prtinter (#786)"

This reverts commit 9e81f246d8.
This commit is contained in:
maziggy
2026-03-23 10:11:56 +01:00
parent 9e81f246d8
commit 40f0405ea0
12 changed files with 188 additions and 185 deletions
-1
View File
@@ -3277,7 +3277,6 @@ export const api = {
getSmartPlug: (id: number) => request<SmartPlug>(`/smart-plugs/${id}`),
getSmartPlugByPrinter: (printerId: number) => request<SmartPlug | null>(`/smart-plugs/by-printer/${printerId}`),
getScriptPlugsByPrinter: (printerId: number) => request<SmartPlug[]>(`/smart-plugs/by-printer/${printerId}/scripts`),
getAllSmartPlugsByPrinter: (printerId: number) => request<SmartPlug[]>(`/smart-plugs/by-printer/${printerId}/all`),
createSmartPlug: (data: SmartPlugCreate) =>
request<SmartPlug>('/smart-plugs/', {
method: 'POST',