1
0

Logically separate handlers with new lines in main.go.

This commit is contained in:
Alexander Andreev 2023-03-13 03:28:01 +04:00
parent d1b1d2537f
commit aac6d8e43a
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -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 {