Remove broken path.Join logic

It is entirely unclear why this doesn't work.
pull/1407/head
Tim Raymond 2017-05-03 19:57:41 -04:00
parent 337c7b16a5
commit 5897e62928
2 changed files with 7 additions and 4 deletions

View File

@ -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.