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:
parent
55b4a94281
commit
8e70c6b1b9
|
@ -220,7 +220,7 @@ func (g *Gateway) Run(ctx context.Context) error {
|
||||||
|
|
||||||
router.PathPrefix("/api/v1alpha").Handler(apirouter)
|
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", authForcedHandler(projectsHandler)).Methods("GET")
|
||||||
apirouter.Handle("/projectgroups/{projectgroupref}", authForcedHandler(projectGroupHandler)).Methods("GET")
|
apirouter.Handle("/projectgroups/{projectgroupref}", authForcedHandler(projectGroupHandler)).Methods("GET")
|
||||||
|
|
Loading…
Reference in New Issue