diff --git a/http/platform_handler.go b/http/platform_handler.go index cab8fdf18f..465b40f724 100644 --- a/http/platform_handler.go +++ b/http/platform_handler.go @@ -25,6 +25,9 @@ func setCORSResponseHeaders(w http.ResponseWriter, r *http.Request) { func NewPlatformHandler(b *APIBackend) *PlatformHandler { h := NewAuthenticationHandler() h.Handler = NewAPIHandler(b) + h.AuthorizationService = b.AuthorizationService + h.SessionService = b.SessionService + h.RegisterNoAuthRoute("GET", "/api/v2") h.RegisterNoAuthRoute("POST", "/api/v2/signin") h.RegisterNoAuthRoute("POST", "/api/v2/signout")