mirror of
https://github.com/Xevion/glance.git
synced 2025-12-10 22:07:21 -06: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