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