Add default InfluxData JSON feed url

pull/10616/head
Jared Scheib 2017-06-13 13:40:05 -07:00
parent 0973b05416
commit 9e38616783
1 changed files with 7 additions and 1 deletions

View File

@ -181,8 +181,14 @@ func NewMux(opts MuxOpts, service Service) http.Handler {
router.PUT("/chronograf/v1/sources/:id/dbs/:dbid/rps/:rpid", service.UpdateRetentionPolicy)
router.DELETE("/chronograf/v1/sources/:id/dbs/:dbid/rps/:rpid", service.DropRetentionPolicy)
// Set statusFeedURL to a default InfluxData JSON feed if not explicitly set by user
statusFeedURL := opts.StatusFeedURL
if statusFeedURL == "" {
statusFeedURL = "http://news.influxdata.com/feed.json"
}
externalLinks := getExternalLinksResponse{
StatusFeed: &opts.StatusFeedURL,
StatusFeed: &statusFeedURL,
}
allRoutes := &AllRoutes{