Logically separate handlers with new lines in main.go.
This commit is contained in:
parent
d1b1d2537f
commit
aac6d8e43a
@ -55,11 +55,15 @@ func main() {
|
|||||||
srv := http.NewHttpServer()
|
srv := http.NewHttpServer()
|
||||||
|
|
||||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||||
|
|
||||||
srv.GET("/", hand.Index)
|
srv.GET("/", hand.Index)
|
||||||
|
|
||||||
srv.GET("/status", hand.Status)
|
srv.GET("/status", hand.Status)
|
||||||
srv.GET("/lastsong", hand.LastSong)
|
srv.GET("/lastsong", hand.LastSong)
|
||||||
|
|
||||||
srv.GET("/playlist", hand.Playlist)
|
srv.GET("/playlist", hand.Playlist)
|
||||||
srv.GET("/filelist", hand.Filelist)
|
srv.GET("/filelist", hand.Filelist)
|
||||||
|
|
||||||
srv.GET("/robots.txt", hand.RobotsTxt)
|
srv.GET("/robots.txt", hand.RobotsTxt)
|
||||||
|
|
||||||
if !*noLiquidsoap {
|
if !*noLiquidsoap {
|
||||||
|
Loading…
Reference in New Issue
Block a user