Add Calendar Events widget, integrate ICS calendar parsing, and refine related UI components
This commit is contained in:
@@ -78,6 +78,9 @@ func Connect() PiHConnector {
|
||||
cfg := &configFile{}
|
||||
config.LoadConfig(cfg)
|
||||
client := &http.Client{}
|
||||
if cfg.Pihole.Host == "" {
|
||||
return PiHConnector{}
|
||||
}
|
||||
req, err := http.NewRequest("POST", "http://"+cfg.Pihole.Host+"/api/auth", strings.NewReader("{\"password\": \""+cfg.Pihole.Password+"\"}"))
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user