Remove broken path.Join logic
It is entirely unclear why this doesn't work.pull/1407/head
parent
337c7b16a5
commit
5897e62928
|
@ -234,8 +234,11 @@ func AuthAPI(opts MuxOpts, router chronograf.Router) (http.Handler, AuthRoutes)
|
|||
})
|
||||
}
|
||||
|
||||
rootPath := path.Join(opts.Basepath, "/chronograf/v1/")
|
||||
logoutPath := path.Join(opts.Basepath, "/oauth/logout")
|
||||
// Y U NO WORKY WITH PATH JOIN?
|
||||
//rootPath := path.Join(opts.Basepath, "/chronograf/v1/")
|
||||
//logoutPath := path.Join(opts.Basepath, "/oauth/logout")
|
||||
rootPath := opts.Basepath + "/chronograf/v1/"
|
||||
logoutPath := opts.Basepath + "/oauth/logout"
|
||||
|
||||
tokenMiddleware := AuthorizedToken(opts.Auth, opts.Logger, router)
|
||||
// Wrap the API with token validation middleware.
|
||||
|
|
Loading…
Reference in New Issue