mirror of
https://github.com/screentinker/screentinker.git
synced 2026-05-15 07:32:23 -06:00
Add getWidgets API method for playlist add-item modal
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
bc7e68d680
commit
9057e5b6d1
|
|
@ -91,6 +91,9 @@ export const api = {
|
||||||
body: JSON.stringify({ order })
|
body: JSON.stringify({ order })
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// Widgets
|
||||||
|
getWidgets: () => request('/widgets'),
|
||||||
|
|
||||||
// Device Groups
|
// Device Groups
|
||||||
getGroups: () => request('/groups'),
|
getGroups: () => request('/groups'),
|
||||||
createGroup: (name, color) => request('/groups', { method: 'POST', body: JSON.stringify({ name, color }) }),
|
createGroup: (name, color) => request('/groups', { method: 'POST', body: JSON.stringify({ name, color }) }),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue