feat(http): hook handler's source svc to authorizer

pull/11285/head
Leonardo Di Donato 2019-01-17 17:02:16 +01:00 committed by Leo Di Donato
parent a11b725a33
commit 4706339a9a
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func NewAPIHandler(b *APIBackend) *APIHandler {
h.ScraperHandler.Logger = b.Logger.With(zap.String("handler", "scraper"))
h.SourceHandler = NewSourceHandler()
h.SourceHandler.SourceService = b.SourceService
h.SourceHandler.SourceService = authorizer.NewSourceService(b.SourceService)
h.SourceHandler.NewBucketService = b.NewBucketService
h.SourceHandler.NewQueryService = b.NewQueryService