1
0

Use new internal/http package.

This commit is contained in:
Alexander Andreev 2023-02-07 02:31:57 +04:00
parent ca8613745f
commit c1296cb7c5
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

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