gateway: use authOptionalHandle with logHandler

or it'll fail when fetching logs on user runs since the logged in userid is not
set in the context
This commit is contained in:
Simone Gotti 2019-05-12 00:28:50 +02:00
parent 55b4a94281
commit 8e70c6b1b9
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ func (g *Gateway) Run(ctx context.Context) error {
router.PathPrefix("/api/v1alpha").Handler(apirouter)
apirouter.Handle("/logs", logsHandler).Methods("GET")
apirouter.Handle("/logs", authOptionalHandler(logsHandler)).Methods("GET")
//apirouter.Handle("/projectgroups", authForcedHandler(projectsHandler)).Methods("GET")
apirouter.Handle("/projectgroups/{projectgroupref}", authForcedHandler(projectGroupHandler)).Methods("GET")