From aac6d8e43a1d04509af802918378a0bdfe557b18 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 13 Mar 2023 03:28:01 +0400 Subject: [PATCH] Logically separate handlers with new lines in main.go. --- cmd/dwelling-radio/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/dwelling-radio/main.go b/cmd/dwelling-radio/main.go index db0fe87..5c4e2cf 100644 --- a/cmd/dwelling-radio/main.go +++ b/cmd/dwelling-radio/main.go @@ -55,11 +55,15 @@ func main() { srv := http.NewHttpServer() srv.ServeStatic("/assets/*filepath", hand.AssetsFS()) + srv.GET("/", hand.Index) + srv.GET("/status", hand.Status) srv.GET("/lastsong", hand.LastSong) + srv.GET("/playlist", hand.Playlist) srv.GET("/filelist", hand.Filelist) + srv.GET("/robots.txt", hand.RobotsTxt) if !*noLiquidsoap {