Feature/multiple switches per prtinter (#786)

Feature/multiple switches per prtinter (#786)
This commit is contained in:
ManuelW
2026-03-23 10:09:14 +01:00
committed by GitHub
parent 27e96c9827
commit 9e81f246d8
12 changed files with 185 additions and 188 deletions
+1
View File
@@ -3277,6 +3277,7 @@ 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',