1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Refactor server package

This commit is contained in:
Maksym Pavlenko
2017-10-28 01:11:49 -07:00
parent 75bd90ff49
commit 813717a2c3
5 changed files with 266 additions and 242 deletions

View File

@@ -13,8 +13,8 @@ import (
"github.com/mxpv/podsync/pkg/builders"
"github.com/mxpv/podsync/pkg/config"
"github.com/mxpv/podsync/pkg/feeds"
"github.com/mxpv/podsync/pkg/handler"
"github.com/mxpv/podsync/pkg/id"
"github.com/mxpv/podsync/pkg/server"
"github.com/mxpv/podsync/pkg/storage"
)
@@ -63,7 +63,7 @@ func main() {
srv := http.Server{
Addr: fmt.Sprintf(":%d", 5001),
Handler: server.MakeHandlers(feed, cfg),
Handler: handler.New(feed, cfg),
}
go func() {