add in twitch integration
This commit is contained in:
@@ -45,6 +45,9 @@ func main() {
|
||||
checker.Start(dataDir, checkInterval)
|
||||
log.Printf("service checker running every %s", checkInterval)
|
||||
|
||||
// Start Twitch live status poller
|
||||
h.StartTwitch(0)
|
||||
|
||||
mux := http.NewServeMux()
|
||||
|
||||
// Static files
|
||||
@@ -70,6 +73,7 @@ func main() {
|
||||
mux.HandleFunc("GET /resume", h.Resume)
|
||||
mux.HandleFunc("POST /newsletter", h.NewsletterPost)
|
||||
mux.HandleFunc("GET /changelog", h.Changelog)
|
||||
mux.HandleFunc("GET /stream", h.Stream)
|
||||
mux.HandleFunc("GET /sitemap.xml", h.Sitemap)
|
||||
|
||||
// Admin routes (auth handled per-handler)
|
||||
|
||||
Reference in New Issue
Block a user