mirror of
https://github.com/glanceapp/glance.git
synced 2025-08-18 11:59:41 +02:00
Add custom API widget
This commit is contained in:
@@ -69,6 +69,8 @@ func New(widgetType string) (Widget, error) {
|
||||
widget = &DNSStats{}
|
||||
case "split-column":
|
||||
widget = &SplitColumn{}
|
||||
case "custom-api":
|
||||
widget = &CustomApi{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown widget type: %s", widgetType)
|
||||
}
|
||||
|
Reference in New Issue
Block a user