From 4706339a9afbba4fa501be3abf7ed769b986b7c3 Mon Sep 17 00:00:00 2001 From: Leonardo Di Donato Date: Thu, 17 Jan 2019 17:02:16 +0100 Subject: [PATCH] feat(http): hook handler's source svc to authorizer --- http/api_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/api_handler.go b/http/api_handler.go index c22f8794f1..6957b36662 100644 --- a/http/api_handler.go +++ b/http/api_handler.go @@ -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