Update connection to check for script

This commit is contained in:
FoxxMD 2025-12-17 17:26:40 -05:00
parent 56c587cc27
commit bb2da5f403

View file

@ -204,7 +204,7 @@ func (h *UmamiFeeder) connect(ctx context.Context, config *Config) error {
return fmt.Errorf("`websites` should not be empty")
}
_, err := sendRequest(ctx, h.host+"/health", nil, nil)
_, err := sendRequest(ctx, h.host+"/api/script.js", nil, nil)
if err != nil {
return fmt.Errorf("Failed to get health for rybbit: %w", err)
}