mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 17:25:32 +00:00
Webhook-Endpoint
This commit is contained in:
@@ -16,6 +16,7 @@ const (
|
||||
DEFAULT_GEO_CACHE_DIR = "geo"
|
||||
DEFAULT_SEARCH_CACHE_DIR = "search"
|
||||
DEFAULT_IMG_DIR = "data_bilder"
|
||||
DEFAULT_WEBHOOK_ENDPOINT = "/webhook"
|
||||
|
||||
DEFAULT_BRANCH = "main"
|
||||
|
||||
@@ -114,6 +115,10 @@ func readDefaults(cfg *Config) *Config {
|
||||
cfg.Address = DEFAULT_ADDR
|
||||
}
|
||||
|
||||
if strings.TrimSpace(cfg.WebHookEndpoint) == "" {
|
||||
cfg.WebHookEndpoint = DEFAULT_WEBHOOK_ENDPOINT
|
||||
}
|
||||
|
||||
if strings.TrimSpace(cfg.Port) == "" {
|
||||
cfg.Port = DEFAULT_PORT
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user