Use new internal/http package.
This commit is contained in:
parent
ca8613745f
commit
c1296cb7c5
@ -44,8 +44,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
defer playlistWatcher.Close()
|
defer playlistWatcher.Close()
|
||||||
|
|
||||||
hand := handlers.NewRadioHandlers(config, logErr)
|
hand := http.NewHandlers(config)
|
||||||
srv := server.NewHttpServer()
|
srv := http.NewHttpServer()
|
||||||
|
|
||||||
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
srv.ServeStatic("/assets/*filepath", hand.AssetsFS())
|
||||||
srv.GET("/", hand.Index)
|
srv.GET("/", hand.Index)
|
||||||
|
Loading…
Reference in New Issue
Block a user