mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 15:29:26 +00:00
WIP: panel functions added to the api.
This commit is contained in:
parent
2f391bce4e
commit
022b11c81f
4 changed files with 111 additions and 0 deletions
|
|
@ -20,6 +20,8 @@ var Endpoints = Allowed{
|
|||
"/device/link/poll",
|
||||
"/device/link/remove",
|
||||
"/device/handshake",
|
||||
"/panel/get",
|
||||
"/panel/list",
|
||||
},
|
||||
Remote: []string{
|
||||
"/macro/list",
|
||||
|
|
|
|||
16
be/app/structs/panel-struct.go
Normal file
16
be/app/structs/panel-struct.go
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package structs
|
||||
|
||||
type PanelJSON struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
AspectRatio string `json:"aspectRatio"`
|
||||
Macros map[string]string `json:"macros"`
|
||||
}
|
||||
|
||||
type PanelInfo struct {
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
AspectRatio string `json:"aspectRatio"`
|
||||
Macros map[string]string `json:"macros"`
|
||||
Thumb string `json:"thumb"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue